Skip to content

Commit

Permalink
Detail error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
k2tzumi committed Nov 8, 2024
1 parent c03164e commit d1d9e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JobBroker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class JobBroker<T extends Parameter> {

const result = handler(JSON.parse(parameter.parameter));
if (!result) {
throw new Error("Abnormal job return value.");
throw new Error(`Abnormal job return value. parameter: ${parameter.parameter}, result: (${typeof result}) "${result}"`);
}

parameter.state = "end";
Expand Down

0 comments on commit d1d9e44

Please sign in to comment.