bin scripts: Delete redundant exception log messages

The exception will cause Node.js to print the error message and stack
trace so there's no point in logging it ourselves.
pull/4656/head
Richard Hansen 2021-01-17 03:16:01 -05:00 committed by John McLear
parent efdcaae526
commit 0a61767901
3 changed files with 151 additions and 166 deletions

View File

@ -15,7 +15,6 @@ if (process.argv.length !== 2) throw new Error('Use: node bin/checkAllPads.js');
(async () => {
await util.promisify(npm.load)({});
try {
// initialize the database
require('ep_etherpad-lite/node/utils/Settings');
const db = require('ep_etherpad-lite/node/db/DB');
@ -91,8 +90,4 @@ if (process.argv.length !== 2) throw new Error('Use: node bin/checkAllPads.js');
throw new Error('No revisions tested');
}
console.log(`Finished: Tested ${revTestedCount} revisions`);
} catch (err) {
console.trace(err);
throw err;
}
})();

View File

@ -19,7 +19,6 @@ let checkRevisionCount = 0;
(async () => {
await util.promisify(npm.load)({});
try {
// initialize database
require('ep_etherpad-lite/node/utils/Settings');
const db = require('ep_etherpad-lite/node/db/DB');
@ -85,8 +84,4 @@ let checkRevisionCount = 0;
}
console.log(`Finished: Checked ${checkRevisionCount} revisions`);
}
} catch (err) {
console.trace(err);
throw err;
}
})();

View File

@ -21,7 +21,6 @@ const util = require('util');
(async () => {
await util.promisify(npm.load)({});
try {
// initialize database
require('ep_etherpad-lite/node/utils/Settings');
const db = require('ep_etherpad-lite/node/db/DB');
@ -67,8 +66,4 @@ const util = require('util');
}
console.log('finished');
} catch (err) {
console.error(err);
throw err;
}
})();