Handle api errors
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-07-02 17:50:25 +03:00
parent 0b808328f4
commit 04a3ea5a23
2 changed files with 2 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ class Api {
async _get (url) {
await this.limiter.removeTokens(1)
return axios.get(url)
return axios.get(url).catch(console.error)
}
async getOrders (url) {

1
package-lock.json generated
View File

@@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
"name": "warframe-center",
"version": "1.0.0",
"workspaces": [
"./app",