Skip to content

Commit

Permalink
Check against ENOENT.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkemp committed Oct 8, 2015
1 parent 2e7944f commit 6dae071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/bible
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var Argv = Yargs.argv
try {
config = ReadJson(CONFIG_FILE_PATH);
} catch (e) {
if (e.code === "MODULE_NOT_FOUND") {
if (e.code === "ENOENT") {
Debug.log(
"No configuration file was found. Initing the configuration file."
, "warn"
Expand Down

0 comments on commit 6dae071

Please sign in to comment.