changeset 19421:616f2b22787b stable

Issue error if load file format cannot be determined (bug #43575). * load-save.cc: Add an else clause that issues an error if the format is still LS_UNKNOWN by the end of the function.
author Rik <rik@octave.org>
date Sat, 06 Dec 2014 07:42:18 -0800
parents 7d272300a880
children 1572b5276b9a 2304ddfd736f
files libinterp/corefcn/load-save.cc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/load-save.cc	Fri Dec 05 12:36:06 2014 -0800
+++ b/libinterp/corefcn/load-save.cc	Sat Dec 06 07:42:18 2014 -0800
@@ -895,6 +895,11 @@
                        orig_fname.c_str ());
             }
         }
+      else
+        {
+          error ("load: unable to determine file format of '%s'",
+                 orig_fname.c_str ());
+        }
     }
 
   return retval;