Categories: Exception → Error
This commit is contained in:
parent
a5258f7460
commit
442c2080fb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class Categories {
|
||||||
constructor(in_filename) {
|
constructor(in_filename) {
|
||||||
this.filename = in_filename;
|
this.filename = in_filename;
|
||||||
if(!fs.existsSync(this.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.
|
* A list of category names.
|
||||||
|
|
Loading…
Reference in a new issue