Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Switch error type for repository methods
cloudhead committed 2 years ago
commit 3a0571c2851d9e18ba8f542c7b480c7250135540
parent df435ef70db7055706bfd54fe8373550b99a7f7b
1 file changed +3 -0
modified radicle-httpd/src/api/error.rs
@@ -129,6 +129,9 @@ impl IntoResponse for Error {
            Error::Storage(err) if err.is_not_found() => {
                (StatusCode::NOT_FOUND, Some(err.to_string()))
            }
+
            Error::Repository(err) if err.is_not_found() => {
+
                (StatusCode::NOT_FOUND, Some(err.to_string()))
+
            }
            Error::StorageRef(err) if err.is_not_found() => {
                (StatusCode::NOT_FOUND, Some(err.to_string()))
            }