Skip to content

Commit d07102e

Browse files
hecktarzulipi0
authored andcommittedJan 8, 2019
fix(docs): should be response.code instead of code (#197)
1 parent ad535a2 commit d07102e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/helpers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Example: (`plugins/axios.js`)
1717
```js
1818
export default function ({ $axios, redirect }) {
1919
$axios.onError(error => {
20-
if(error.code === 500) {
20+
if(error.response.status === 500) {
2121
redirect('/sorry')
2222
}
2323
})

0 commit comments

Comments
 (0)
Please sign in to comment.