added content hash check

This commit is contained in:
azivner
2017-11-21 22:11:27 -05:00
parent d7644de666
commit 79a803ccc9
8 changed files with 105 additions and 10 deletions

View File

@@ -130,14 +130,14 @@ async function deleteRecentAudits(category, browserId, noteId) {
}
async function wrap(func) {
const thisError = new Error();
const db = await dbReady;
try {
return await func(db);
}
catch (e) {
const thisError = new Error();
log.error("Error executing query. Inner exception: " + e.stack + thisError.stack);
throw thisError;