[Pkg-libvirt-commits] [libguestfs] 08/26: resize: Remove unnecessary 'prog' from error message.

Hilko Bengen bengen at moszumanska.debian.org
Sun Nov 1 17:11:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.28.12
in repository libguestfs.

commit ebd53a415f65c7d5b8efbcb09d7d640b7943039a
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu May 14 17:37:46 2015 +0100

    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
    
    (cherry picked from commit a255e283d02505f572f6ee32a66cab78c248ff12)
---
 resize/resize.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resize/resize.ml b/resize/resize.ml
index 5c0640a..f08501f 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -155,7 +155,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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list