From 6dae6290a460f1d2e63cea387bc78a74d7c22e20 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Thu, 28 Nov 2024 11:32:59 +0100 Subject: [PATCH] docs(action): improve error message on missing coreboot blob Signed-off-by: AtomicFS --- action/recipes/coreboot.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/action/recipes/coreboot.go b/action/recipes/coreboot.go index d5e4e61d..4d711cd5 100644 --- a/action/recipes/coreboot.go +++ b/action/recipes/coreboot.go @@ -129,7 +129,7 @@ func (opts CorebootOpts) GetArtifacts() *[]container.Artifacts { return opts.CommonOpts.GetArtifacts() } -// corebootProcessBlobs is used to fill figure out blobs from provided data. +// corebootProcessBlobs is used to figure out blobs from provided data func corebootProcessBlobs(opts CorebootBlobs) ([]BlobDef, error) { blobMap := map[string]BlobDef{ // Payload @@ -299,6 +299,11 @@ func (opts CorebootOpts) buildFirmware(ctx context.Context, client *dagger.Clien // Copy into container if err = filesystem.CheckFileExists(src); !errors.Is(err, os.ErrExist) { + slog.Error( + fmt.Sprintf("Blob '%s' was not found", src), + slog.String("suggestion", "blobs are copied into container separately from 'input_files' and 'input_dirs', the path should point to files on your host"), + slog.Any("error", err), + ) return nil, err } if blobs[blob].IsDirectory {