Blob Blame History Raw
diff -up octave-4.2.0/libinterp/dldfcn/gzip.cc.gzip octave-4.2.0/libinterp/dldfcn/gzip.cc
--- octave-4.2.0/libinterp/dldfcn/gzip.cc.gzip	2016-11-13 08:16:10.000000000 -0700
+++ octave-4.2.0/libinterp/dldfcn/gzip.cc	2016-12-08 13:23:56.325297196 -0700
@@ -449,14 +449,15 @@ namespace octave
             {
               X::zip (path, dest_path);
             }
-          catch (...)
+          catch ( const std::exception & ex )
             {
+              warning ("gzip: zip threw exception %s", ex.what());
               // Error "handling" is not including filename on the output list.
               // Also remove created file which maybe was not even created
               // in the first place.  Note that it is possible for the file
               // to exist in the first place and for X::zip to not have
               // clobber it yet but we remove it anyway by design.
-              octave::sys::unlink (dest_path);
+              //octave::sys::unlink (dest_path);
               return;
             }
           dest_paths.push_front (dest_path);