Normalize TRY_CATCH exception handling block
[deliverable/binutils-gdb.git] / gdb / cli / cli-script.c
index 010d661af4d5e5d235b77e8961583464a9c99315..2ec8bcd1c800bdd21e893b2f83cb06bd3b2586d1 100644 (file)
@@ -1706,18 +1706,13 @@ script_from_file (FILE *stream, const char *file)
       {
        read_command_file (stream);
       }
-    switch (e.reason)
+    if (e.reason < 0)
       {
-      case 0:
-       break;
-      case RETURN_ERROR:
        /* Re-throw the error, but with the file name information
           prepended.  */
        throw_error (e.error,
                     _("%s:%d: Error in sourced command file:\n%s"),
                     source_file_name, source_line_number, e.message);
-      default:
-       internal_error (__FILE__, __LINE__, _("bad reason"));
       }
   }
 
This page took 0.039778 seconds and 4 git commands to generate.