[Pkg-ocaml-maint-commits] [approx] 06/16: include filename in decompress error message

Eric Cooper ecc at cmu.edu
Mon Dec 9 15:44:03 UTC 2013


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

ecc-guest pushed a commit to branch upstream
in repository approx.

commit bd045aca45f2aff29c4e55478c38b85b9038589b
Author: Eric Cooper <ecc at cmu.edu>
Date:   Mon Apr 22 13:31:53 2013 -0400

    include filename in decompress error message
---
 util.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.ml b/util.ml
index b5c9166..1eb978e 100644
--- a/util.ml
+++ b/util.ml
@@ -197,7 +197,7 @@ let decompress file =
     let tmp = (tmp_dir ()) ^/ gensym (Filename.basename file) in
     let cmd = sprintf "/bin/gunzip --stdout %s > %s" file tmp in
     if Sys.command cmd = 0 then tmp
-    else (rm tmp; failwith "decompress")
+    else (rm tmp; failwith ("decompress " ^ file))
 
 let with_decompressed file = with_resource rm decompress file
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/approx.git



More information about the Pkg-ocaml-maint-commits mailing list