diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-21 17:21:59 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-21 17:21:59 +0000 |
commit | 23567f3b73ef309ba9afda51e084751b64942c53 (patch) | |
tree | faff10f423fdb4fa5ef0d22c94eafd18bfe76500 /src/file_upload.rs | |
parent | Rework error system + avoid panics in main() (diff) | |
download | miniserve-23567f3b73ef309ba9afda51e084751b64942c53.tar.gz miniserve-23567f3b73ef309ba9afda51e084751b64942c53.zip |
Print upload/archive errors also in terminal
Diffstat (limited to 'src/file_upload.rs')
-rw-r--r-- | src/file_upload.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_upload.rs b/src/file_upload.rs index 960f831..54c56dd 100644 --- a/src/file_upload.rs +++ b/src/file_upload.rs @@ -175,6 +175,7 @@ fn create_error_response( description: &str, return_path: &str, ) -> FutureResult<HttpResponse, actix_web::error::Error> { + log::error!("{}", description); future::ok( HttpResponse::BadRequest() .content_type("text/html; charset=utf-8") |