feat: update to new meeting date

This commit is contained in:
Karl-Philipp Wulfert
2019-11-13 15:02:12 +01:00
parent b1c019bece
commit 98c73b5758
4 changed files with 39 additions and 36 deletions

View File

@@ -27,8 +27,20 @@ import {tidy} from './tasks/tidy';
import {unlabel} from './tasks/unlabel';
// add default handler for unhandled rejections
process.on('unhandledRejection', async (err) => {
await Logger.error('UNHANDLED REJECTION', err.stack);
process.on('unhandledRejection', async (reason) => {
if (reason instanceof Error) {
await Logger.error('Unhandled rejection', reason.stack);
} else {
await Logger.error('Unhandled rejection', reason);
}
process.exit(1);
});
// error on unknown commands
commander.on('command:*', async () => {
await Logger.error('Invalid command: %s\nSee --help for a list of available commands.', commander.args.join(' '));
process.exit(1);
});
@@ -78,7 +90,3 @@ commander
commander
.parse(process.argv);
if (commander.args.length < 1) {
commander.help();
}