mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
resize: Remove unnecessary 'prog' from error message.
The common error function already prints the program name, so we don't need to print it twice. Before: $ virt-resize --expand "" virt-resize: error: virt-resize: empty --expand option After: $ virt-resize --expand "" virt-resize: error: empty --expand option
This commit is contained in:
@@ -170,7 +170,7 @@ let main () =
|
||||
let dryrun = ref false in
|
||||
let expand = ref "" in
|
||||
let set_expand s =
|
||||
if s = "" then error (f_"%s: empty --expand option") prog
|
||||
if s = "" then error (f_"empty --expand option")
|
||||
else if !expand <> "" then error (f_"--expand option given twice")
|
||||
else expand := s
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user