Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Return correct api error status
Alexis Sellier committed 4 years ago
commit f8083a24d1dc5a6b813e22aafa664301b3fbc926
parent 8ac5609c6012d020903538d5bc0501c5d016ba87
1 file changed +1 -1
modified src/api.ts
@@ -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();
  }