Throw the exact (same) exception

This commit is contained in:
Chocobo1 2021-05-07 15:11:48 +08:00
parent 6d399f0303
commit 05e3e46f5a
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -389,7 +389,7 @@ void BitTorrent::DBResumeDataStorage::createDB() const
catch (const RuntimeError &err)
{
db.rollback();
throw err;
throw;
}
}
@ -566,7 +566,7 @@ void BitTorrent::DBResumeDataStorage::Worker::storeQueue(const QVector<TorrentID
catch (const RuntimeError &err)
{
db.rollback();
throw err;
throw;
}
}
catch (const RuntimeError &err)