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
parent
efdcaae526
commit
0a61767901
|
@ -15,7 +15,6 @@ if (process.argv.length !== 2) throw new Error('Use: node bin/checkAllPads.js');
|
||||||
(async () => {
|
(async () => {
|
||||||
await util.promisify(npm.load)({});
|
await util.promisify(npm.load)({});
|
||||||
|
|
||||||
try {
|
|
||||||
// initialize the database
|
// initialize the database
|
||||||
require('ep_etherpad-lite/node/utils/Settings');
|
require('ep_etherpad-lite/node/utils/Settings');
|
||||||
const db = require('ep_etherpad-lite/node/db/DB');
|
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');
|
throw new Error('No revisions tested');
|
||||||
}
|
}
|
||||||
console.log(`Finished: Tested ${revTestedCount} revisions`);
|
console.log(`Finished: Tested ${revTestedCount} revisions`);
|
||||||
} catch (err) {
|
|
||||||
console.trace(err);
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -19,7 +19,6 @@ let checkRevisionCount = 0;
|
||||||
(async () => {
|
(async () => {
|
||||||
await util.promisify(npm.load)({});
|
await util.promisify(npm.load)({});
|
||||||
|
|
||||||
try {
|
|
||||||
// initialize database
|
// initialize database
|
||||||
require('ep_etherpad-lite/node/utils/Settings');
|
require('ep_etherpad-lite/node/utils/Settings');
|
||||||
const db = require('ep_etherpad-lite/node/db/DB');
|
const db = require('ep_etherpad-lite/node/db/DB');
|
||||||
|
@ -85,8 +84,4 @@ let checkRevisionCount = 0;
|
||||||
}
|
}
|
||||||
console.log(`Finished: Checked ${checkRevisionCount} revisions`);
|
console.log(`Finished: Checked ${checkRevisionCount} revisions`);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
|
||||||
console.trace(err);
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -21,7 +21,6 @@ const util = require('util');
|
||||||
(async () => {
|
(async () => {
|
||||||
await util.promisify(npm.load)({});
|
await util.promisify(npm.load)({});
|
||||||
|
|
||||||
try {
|
|
||||||
// initialize database
|
// initialize database
|
||||||
require('ep_etherpad-lite/node/utils/Settings');
|
require('ep_etherpad-lite/node/utils/Settings');
|
||||||
const db = require('ep_etherpad-lite/node/db/DB');
|
const db = require('ep_etherpad-lite/node/db/DB');
|
||||||
|
@ -67,8 +66,4 @@ const util = require('util');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('finished');
|
console.log('finished');
|
||||||
} catch (err) {
|
|
||||||
console.error(err);
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue