Skip to content

Commit

Permalink
fix: change connect error msg and code
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarowolfx committed May 2, 2024
1 parent 4c01180 commit de07922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/managedwriter/stream_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export class StreamConnection extends EventEmitter {
this.resendAllPendingWrites();
} else {
const err = new gax.GoogleError(
'aborted due to failed connection, please retry the request'
'Connection failure, please retry the request'
);
err.code = gax.Status.ABORTED;
err.code = gax.Status.UNAVAILABLE;
this.ackAllPendingWrites(err);
}
}
Expand Down

0 comments on commit de07922

Please sign in to comment.