فهرست منبع

fud/download: better error when metadata is not found

epiphany 7 ماه پیش
والد
کامیت
0a29562a3d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      bin/fud/fud/src/download.rs

+ 1 - 1
bin/fud/fud/src/download.rs

@@ -439,7 +439,7 @@ pub async fn fetch_metadata(
 
     // We did not find the resource
     if result.is_none() {
-        return Err(Error::GeodeFileRouteNotFound)
+        return Err(Error::Custom("Metadata not found".to_string()))
     }
 
     // Insert metadata to geode using the reply