diff options
author | khai96_ <hvksmr1996@gmail.com> | 2019-04-26 06:04:16 +0000 |
---|---|---|
committer | khai96_ <hvksmr1996@gmail.com> | 2019-04-26 06:04:16 +0000 |
commit | 838d86655fb39b5cdf63b2d3823ce047e63afaf4 (patch) | |
tree | cf5306f1050108f872d6d7d020606f5dc5c90206 /src/listing.rs | |
parent | Use rstest_parametrize for unit tests (diff) | |
parent | Use rstest test fixtures to cut down on code duplication in integration tests (diff) | |
download | miniserve-838d86655fb39b5cdf63b2d3823ce047e63afaf4.tar.gz miniserve-838d86655fb39b5cdf63b2d3823ce047e63afaf4.zip |
Merge remote-tracking branch 'mainrepo/master' into pullrequest.hashed-password
Diffstat (limited to 'src/listing.rs')
-rw-r--r-- | src/listing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listing.rs b/src/listing.rs index 6aa1eac..a030feb 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -263,10 +263,10 @@ pub fn directory_listing<S>( .body(Body::Streaming(Box::new(once(Ok(content)))))) } Err(err) => { - errors::print_error_chain(err); + errors::log_error_chain(err.to_string()); Ok(HttpResponse::Ok() .status(http::StatusCode::INTERNAL_SERVER_ERROR) - .body("")) + .body(renderer::render_error(&err.to_string(), serve_path).into_string())) } } } else { |