Skip to content

Commit

Permalink
chore: debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zork33 committed Sep 25, 2024
1 parent c65036f commit 1006c74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ export class TransportError extends YdbError {
}

static convertToYdbError(e: Error & GrpcStatusObject): Error {

console.info(1000, JSON.stringify(e, null, 2));

const ErrCls = TRANSPORT_ERROR_CODES.get(e.code);

if (!ErrCls) {
Expand Down

0 comments on commit 1006c74

Please sign in to comment.