Do the "catch Throwable" at the right spot so we can generate

an error message if the action is called.
This commit is contained in:
hns 2001-08-27 17:55:25 +00:00
parent a0715302ae
commit 02dbec2d07

View file

@ -69,7 +69,7 @@ public class Action implements Updatable {
reader.close (); reader.close ();
String content = new String (cbuf); String content = new String (cbuf);
update (content); update (content);
} catch (Throwable filex) { } catch (IOException filex) {
app.logEvent ("*** Error reading action file "+file+": "+filex); app.logEvent ("*** Error reading action file "+file+": "+filex);
} }
@ -85,7 +85,7 @@ public class Action implements Updatable {
try { try {
pfunc = parseFunction (functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", content); pfunc = parseFunction (functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", content);
} catch (Exception x) { } catch (Throwable x) {
String message = x.getMessage (); String message = x.getMessage ();
pfunc = new ErrorFeedback (functionName, message); pfunc = new ErrorFeedback (functionName, message);
} }