diff --git a/http.js b/http.js index 06d1866..16f6305 100644 --- a/http.js +++ b/http.js @@ -16,10 +16,10 @@ function get(url, params) { }).then((response) => { ret.data = response; resolve(ret); - }).catch(error) => { + }).catch((error) => { ret.err = error; resolve(ret); - }; + }); }); }