[Libguestfs] [PATCH 1/5] mllib: Don't alias G = Guestfs in Common_utils module.

Richard W.M. Jones rjones at redhat.com
Tue Oct 6 12:30:46 UTC 2015


---
 mllib/common_utils.ml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
index f8fa8fd..f9c45cc 100644
--- a/mllib/common_utils.ml
+++ b/mllib/common_utils.ml
@@ -20,8 +20,6 @@ open Printf
 
 open Common_gettext.Gettext
 
-module G = Guestfs
-
 let (//) = Filename.concat
 
 let ( +^ ) = Int64.add
@@ -357,7 +355,7 @@ let run_main_and_handle_errors main =
     error (f_"%s: %s: %s") fname (Unix.error_message code) param
   | Sys_error msg ->                    (* from a syscall *)
     error (f_"%s") msg
-  | G.Error msg ->                      (* from libguestfs *)
+  | Guestfs.Error msg ->                (* from libguestfs *)
     error (f_"libguestfs error: %s") msg
   | Failure msg ->                      (* from failwith/failwithf *)
     error (f_"failure: %s") msg
-- 
2.5.0




More information about the Libguestfs mailing list