Skip to content

Commit 91f6ef9

Browse files
committed
feat(boil): Add image directory to error message
1 parent ccadfc6 commit 91f6ef9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/boil/src/build/bakefile.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ pub enum Error {
5757
#[snafu(display("failed to parse build arguments"))]
5858
ParseBuildArguments { source: ParseBuildArgumentsError },
5959

60-
#[snafu(display("failed to locate containerfile relative to the image folder"))]
61-
NoSuchContainerfileExists,
60+
#[snafu(display("failed to locate containerfile relative to the {path:?} directory"))]
61+
NoSuchContainerfileExists { path: String },
6262
}
6363

6464
#[derive(Debug, Snafu)]
@@ -341,14 +341,14 @@ impl Bakefile {
341341
let containerfile_path = if let Some(custom_path) = &image_options.containerfile {
342342
ensure!(
343343
image_dir.exists(custom_path),
344-
NoSuchContainerfileExistsSnafu
344+
NoSuchContainerfileExistsSnafu { path: image_name }
345345
);
346346

347347
PathBuf::new().join(&image_name).join(custom_path)
348348
} else {
349349
ensure!(
350350
image_dir.exists(&args.target_containerfile),
351-
NoSuchContainerfileExistsSnafu
351+
NoSuchContainerfileExistsSnafu { path: image_name }
352352
);
353353

354354
PathBuf::new()

0 commit comments

Comments
 (0)