From 41c0dd1957984379b5ec58067619b5ae5f7f6597 Mon Sep 17 00:00:00 2001 From: structix Date: Fri, 18 Apr 2025 10:14:52 +0200 Subject: [PATCH] Change error printing to eprintln --- src/http_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http_server.rs b/src/http_server.rs index b00f7c8..c315544 100644 --- a/src/http_server.rs +++ b/src/http_server.rs @@ -62,7 +62,7 @@ async fn add_rating( { Ok(_) => (StatusCode::OK, "Done.").into_response(), Err(e) => { - println!("HTTP error: {e}"); + eprintln!("HTTP error: {e}"); (StatusCode::BAD_REQUEST, e.to_string()).into_response() } } @@ -88,7 +88,7 @@ async fn add_userid(Path(user_id): Path, State(shared): State) { Ok(_) => (StatusCode::OK, "Done.").into_response(), Err(e) => { - println!("HTTP error: {e}"); + eprintln!("HTTP error: {e}"); (StatusCode::BAD_REQUEST, e.to_string()).into_response() } }