Skip to content

Commit 1378f81

Browse files
committed
fix(lib): remove throw
1 parent 9e1078e commit 1378f81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/plugin.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Strapi extends Hookable {
1313
this.$cookies = ctx.app.$cookies
1414
this.$http = ctx.$http.create({})
1515
this.$http.setBaseURL('<%= options.url %>')
16-
this.$http.onError(async (err) => {
16+
this.$http.onError((err) => {
1717
const { response: { data: { message: msg } } } = err
1818

1919
let message
@@ -27,7 +27,6 @@ class Strapi extends Hookable {
2727

2828
err.message = message
2929
this.callHook('error', err)
30-
throw err
3130
})
3231
}
3332

0 commit comments

Comments
 (0)