Skip to content

Commit

Permalink
Handle error of CreateDeploymentFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
peb-adr committed Dec 5, 2023
1 parent 29145cd commit 8120521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ func CreateDeploymentFilesFromTree(outdir string, force bool, tplDirName *string
if err != nil {
return fmt.Errorf("reading file %q: %w", path, err)
}
CreateDeploymentFile(createFile, force, fc, cfg)
if err := CreateDeploymentFile(createFile, force, fc, cfg); err != nil {
return fmt.Errorf("creating deployment file %s: %w", createFile, err)
}
}
return nil
}); err != nil {
Expand Down

0 comments on commit 8120521

Please sign in to comment.