Skip to content

Commit 5825843

Browse files
tcarriobrianc
authored andcommittedOct 4, 2020
Public export of DatabaseError
- Updated root exports of 'pg-protocol' to include DatabaseError Ref: #2340
1 parent e421167 commit 5825843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/pg-protocol/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BackendMessage } from './messages'
1+
import { BackendMessage, DatabaseError } from './messages'
22
import { serialize } from './serializer'
33
import { Parser, MessageCallback } from './parser'
44

@@ -8,4 +8,4 @@ export function parse(stream: NodeJS.ReadableStream, callback: MessageCallback):
88
return new Promise((resolve) => stream.on('end', () => resolve()))
99
}
1010

11-
export { serialize }
11+
export { serialize, DatabaseError }

0 commit comments

Comments
 (0)
Please sign in to comment.