Skip to content

Commit

Permalink
Check error more carefully, fixes ubports#1840
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoTheThird authored and calebccff committed Mar 19, 2022
1 parent e6cf9ee commit b6873dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/plugins/systemimage/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const getImages = (channel, device, wipe, enable = [], disable = []) =>
].join("\n")
}))
.catch(error => {
if (error.response.status === 404) throw new Error("404");
if (error?.response?.status === 404) throw new Error("404");
else throw new Error("no network");
});

Expand Down

0 comments on commit b6873dc

Please sign in to comment.