Skip to content

Commit

Permalink
fix: log full error if script could not be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 3, 2021
1 parent 07bcd97 commit f45f0e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export async function octoherd(
try {
userScript = (await import(path)).script;
} catch (error) {
octokit.log.error(error.stack);
throw new Error(`[octoherd] ${octoherdScript} script could not be found`);
}

Expand Down

0 comments on commit f45f0e2

Please sign in to comment.