Skip to content

Commit

Permalink
Add an error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
tijn committed Oct 16, 2017
1 parent 102440e commit a531808
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export default {
this.down()
}
}
}).catch((error) => {
if (this.handleError) {
this.handleError(error)
}
this.loading = false
})
},

Expand Down

0 comments on commit a531808

Please sign in to comment.