Skip to content

Commit

Permalink
feat: add error code number
Browse files Browse the repository at this point in the history
  • Loading branch information
zeruk committed Mar 16, 2023
1 parent 222a9f9 commit 90d71c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class YdbError extends Error {
if (!ErrCls) {
throw new Error(`Unexpected status code ${status}!`);
} else {
throw new ErrCls(`${ErrCls.name}: ${YdbError.formatIssues(operation.issues)}`, operation.issues);
throw new ErrCls(`${ErrCls.name} (code ${status}): ${YdbError.formatIssues(operation.issues)}`, operation.issues);
}
}
}
Expand Down

0 comments on commit 90d71c1

Please sign in to comment.