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