Skip to content

Commit

Permalink
fix: translate error from ledger-js for backward compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed May 24, 2024
1 parent 4ba9a3b commit 835e547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function isDict(v: any) {
export function processErrorResponse(response: any) {
if (response != null) {
if (isDict(response)) {
if (Object.prototype.hasOwnProperty.call(response, 'statusCode')) {
if (Object.prototype.hasOwnProperty.call(response, 'returnCode')) {
return {
return_code: response.statusCode,
error_message: errorCodeToString(response.statusCode),
Expand Down

0 comments on commit 835e547

Please sign in to comment.