diff --git a/src/lib/Categories.mjs b/src/lib/Categories.mjs index b9c3bbb..1d5827c 100644 --- a/src/lib/Categories.mjs +++ b/src/lib/Categories.mjs @@ -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.