aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e185658..843cea0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -199,7 +199,7 @@ async fn handle_data_list(info: web::Query<DataRequest>) -> HttpResponse {
ls.map(|result| {
result
.map(|entry| format!("{}", entry.path().display()))
- .unwrap_or_else(|e| format!("{}", e))
+ .unwrap_or_else(|e| format!("error: {}", e))
})
.reduce(|acc, entry| acc + "\n" + &entry)
.unwrap_or(String::new()),