Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Extend Temporal API error messages (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored Oct 25, 2021
1 parent e6f1183 commit fc9a8b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/temporal-client/with-error-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const getter = (obj, property) => {
try {
return await fn(...args);
} catch (err) {
const req = args.length >= 1 ? args[1]: null; // [0] - context, [1] - request
err.message = `${err.message}. method: ${property}, req: ${JSON.stringify(req)}`;
throw convertError(err);
}
};
Expand Down

0 comments on commit fc9a8b4

Please sign in to comment.