Browse Source

exit instead of return false on image failure

David Rose 22 years ago
parent
commit
0151ec934c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pandatool/src/imagebase/imageReader.cxx

+ 1 - 1
pandatool/src/imagebase/imageReader.cxx

@@ -48,7 +48,7 @@ handle_args(ProgramBase::Args &args) {
 
 
   if (!_image.read(args[0])) {
   if (!_image.read(args[0])) {
     nout << "Unable to read image file " << args[0] << ".\n";
     nout << "Unable to read image file " << args[0] << ".\n";
-    return false;
+    exit(1);
   }
   }
 
 
   return true;
   return true;