Skip to content

Commit

Permalink
allow for undefined error response
Browse files Browse the repository at this point in the history
  • Loading branch information
matievisthekat committed Feb 24, 2023
1 parent a90d2a6 commit 7bd08d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = class Updater {
this.refresh()
.then(async () => resolve(await this.request(config)))
.catch(reject);
} else reject(err.response.data);
} else reject(err.response?.data);
});
});
}
Expand Down

0 comments on commit 7bd08d2

Please sign in to comment.