chore: warn msg

This commit is contained in:
Patryk Jeziorowski
2021-05-27 07:01:32 +02:00
committed by Pierre Mavro
parent 2fcfecfe90
commit 39cfc4f31d

View File

@@ -412,7 +412,11 @@ impl BuildPlatform for LocalDocker {
let dockerfile_exists = match dockerfile_relative_path {
Some(path) => {
let dockerfile_complete_path = format!("{}/{}", into_dir.as_str(), path);
Path::new(dockerfile_complete_path.as_str()).exists()
let exists = Path::new(dockerfile_complete_path.as_str()).exists();
if !exists {
warn!("Dockerfile not found under given {}", dockerfile_complete_path)
}
exists
}
None => false,
};