Skip to content

Commit

Permalink
Fix some incorrect error information
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData authored and b-rowan committed Nov 26, 2024
1 parent 98fa1f6 commit 88e0ee2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goosebit/ui/static/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function get_request(url) {
});
}

throw new Error(`POST ${url} failed for ${JSON.stringify(object)}`);
throw new Error(`GET ${url} failed for ${JSON.stringify(object)}`);
}
return result;
}
Expand Down Expand Up @@ -123,7 +123,7 @@ async function patch_request(url, object) {
});
}

throw new Error(`POST ${url} failed for ${JSON.stringify(object)}`);
throw new Error(`PATCH ${url} failed for ${JSON.stringify(object)}`);
}
}
async function delete_request(url, object) {
Expand All @@ -144,6 +144,6 @@ async function delete_request(url, object) {
});
}

throw new Error(`POST ${url} failed for ${JSON.stringify(object)}`);
throw new Error(`DELETE ${url} failed for ${JSON.stringify(object)}`);
}
}

0 comments on commit 88e0ee2

Please sign in to comment.