mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
improve help message for fs missing input
This commit is contained in:
@@ -63,7 +63,12 @@ func (f *FSCommand) Run(args []string) int {
|
||||
args = flags.Args()
|
||||
|
||||
if len(args) < 1 {
|
||||
f.Ui.Error("allocation id or -job is required")
|
||||
if job {
|
||||
f.Ui.Error("job ID is required")
|
||||
} else {
|
||||
f.Ui.Error("allocation ID is required")
|
||||
}
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user