Skip to content

Commit

Permalink
add logging to handleUnexpectedError
Browse files Browse the repository at this point in the history
  • Loading branch information
sweeetland committed Nov 5, 2020
1 parent d5e119d commit 46d0130
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/handleUnexpectedError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Hook } from '../index'
export const handleUnexpectedError: Hook = async state => {
const { error } = state

console.log('unexpected error: ', error)

state.exit = true

state.response = {
Expand Down

0 comments on commit 46d0130

Please sign in to comment.