mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 07:36:43 +00:00
actix-files: "Specified path is not a directory" error now includes the path (#1004)
This commit is contained in:
parent
f3751d83f8
commit
52372fcbea
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ impl Files {
|
||||||
pub fn new<T: Into<PathBuf>>(path: &str, dir: T) -> Files {
|
pub fn new<T: Into<PathBuf>>(path: &str, dir: T) -> Files {
|
||||||
let dir = dir.into().canonicalize().unwrap_or_else(|_| PathBuf::new());
|
let dir = dir.into().canonicalize().unwrap_or_else(|_| PathBuf::new());
|
||||||
if !dir.is_dir() {
|
if !dir.is_dir() {
|
||||||
log::error!("Specified path is not a directory");
|
log::error!("Specified path is not a directory: {:?}", dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
Files {
|
Files {
|
||||||
|
|
Loading…
Reference in a new issue