Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
fix: check if res is ok, not 200
Browse files Browse the repository at this point in the history
might fix always erroring even when functional
  • Loading branch information
xynydev committed Feb 10, 2024
1 parent 1b2be28 commit 2f73113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ImageChooser/CreateRepo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}
);
repo = await res.json();
if (res.status != 200) {
if (!res.ok) {
log += "Repo creation failed: \n";
log += JSON.stringify(repo);
log += "\n";
Expand Down

0 comments on commit 2f73113

Please sign in to comment.