mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Return correct api error status
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ export class Request {
|
||||
}
|
||||
|
||||
if (! response.ok) {
|
||||
throw new ApiError("Not found", urlString);
|
||||
throw new ApiError(response.statusText, urlString);
|
||||
}
|
||||
return response.json();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user