Skip to content

Commit

Permalink
Fixed invalid constructing of DatabaseError
Browse files Browse the repository at this point in the history
  • Loading branch information
erayhanoglu committed Sep 8, 2021
1 parent d8b1d79 commit e904539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/PgSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class PgSocket extends SafeEventEmitter {
this.emit('close');
}

protected _handleError(err: SocketError): void {
protected _handleError(err: unknown): void {
if (this._state !== ConnectionState.READY) {
this._socket?.end();
}
Expand Down

0 comments on commit e904539

Please sign in to comment.