Categories: Exception → Error

post-talk-improvements
Starbeamrainbowlabs 2 years ago
parent a5258f7460
commit 442c2080fb
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2

@ -9,7 +9,7 @@ class Categories {
constructor(in_filename) {
this.filename = in_filename;
if(!fs.existsSync(this.filename))
throw new Exception(`Error: No such file or directory '${this.filename}' (it should exist and have 1 category name per line).`);
throw new Error(`Error: No such file or directory '${this.filename}' (it should exist and have 1 category name per line).`);
/**
* A list of category names.

Loading…
Cancel
Save