1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-04-08 02:49:52 +00:00

actix-files: "Specified path is not a directory" error now includes the path

This commit is contained in:
Erik Desjardins 2019-07-22 19:11:02 -04:00
parent f3751d83f8
commit 43130b3ee9

View file

@ -261,7 +261,7 @@ impl Files {
pub fn new<T: Into<PathBuf>>(path: &str, dir: T) -> Files {
let dir = dir.into().canonicalize().unwrap_or_else(|_| PathBuf::new());
if !dir.is_dir() {
log::error!("Specified path is not a directory");
log::error!("Specified path is not a directory: {:?}", dir);
}
Files {