Skip to content

Commit b1184b9

Browse files
committed
Improve routing error messages
1 parent 239b572 commit b1184b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webserver/http.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ pub async fn main_handler(
338338
Ok(action) => action,
339339
Err(e) => {
340340
let e = e.context(format!(
341-
"Unable to calculate the routing action for: {path_and_query:?}"
341+
"The server cannot provide what you were asking for. \n\
342+
The following page is not accessible: {path_and_query:?}"
342343
));
343344
return Err(anyhow_err_to_actix(e, app_state));
344345
}

0 commit comments

Comments
 (0)