mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
command: enhance error message on no build to run
This commit is contained in:
parent
e94b8766cb
commit
73af77aeed
1 changed files with 4 additions and 2 deletions
|
|
@ -192,8 +192,10 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cla *BuildArgs) int
|
|||
if len(builds) == 0 {
|
||||
return writeDiags(c.Ui, nil, hcl.Diagnostics{
|
||||
&hcl.Diagnostic{
|
||||
Summary: "No builds to run",
|
||||
Detail: "a build command cannot run without at least one build to process",
|
||||
Summary: "No builds to run",
|
||||
Detail: "A build command cannot run without at least one build to process. " +
|
||||
"If the only or except flags have been specified at run time check that" +
|
||||
" at least one build is selected for execution.",
|
||||
Severity: hcl.DiagError,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue