Skip to content

Commit

Permalink
Adopt message
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Nov 18, 2022
1 parent 2eb3a89 commit 2bf2ad9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/processors/jsdoc/jsdocGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function buildJsdoc({sourcePath, configPath}) {
});

if (exitCode !== 0) {
throw new Error(`JSDoc child process exited with code ${exitCode}`);
throw new Error(`JSDoc reported an error, check the log for issues (exit code: ${exitCode})`);
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/lib/processors/jsdoc/jsdocGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test.serial("buildJsdoc", async (t) => {
sourcePath: "/some/path",
configPath: "/some/config/path/jsdoc-config.json"
}), {
message: "JSDoc child process exited with code 1"
message: "JSDoc reported an error, check the log for issues (exit code: 1)"
});

// Re-execute with exit code 2
Expand All @@ -127,7 +127,7 @@ test.serial("buildJsdoc", async (t) => {
sourcePath: "/some/path",
configPath: "/some/config/path/jsdoc-config.json"
}));
t.is(error.message, "JSDoc child process exited with code 2");
t.is(error.message, "JSDoc reported an error, check the log for issues (exit code: 2)");
});

test.serial("jsdocGenerator", async (t) => {
Expand Down

0 comments on commit 2bf2ad9

Please sign in to comment.