Categories: Exception → Error

This commit is contained in:
Starbeamrainbowlabs 2021-02-23 21:38:13 +00:00
parent a5258f7460
commit 442c2080fb
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -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.