Skip to content

Commit

Permalink
Remove Knex error handler changes
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Dec 20, 2022
1 parent 5912c28 commit a425d1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 66 deletions.
2 changes: 1 addition & 1 deletion packages/knex/src/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function errorHandler(error: any) {
// NOTE: Error codes taken from
// https://www.postgresql.org/docs/9.6/static/errcodes-appendix.html
// Omit query information
const messages = (error.message || '').split('-')
const messages = error.message.split('-')
error.message = messages[messages.length - 1]

switch (error.code.slice(0, 2)) {
Expand Down
65 changes: 0 additions & 65 deletions packages/knex/test/error-handler.test.ts

This file was deleted.

0 comments on commit a425d1b

Please # to comment.