Catch every Throwable in update methods, since
FESI may throw Errors at us
This commit is contained in:
parent
39a561ff2b
commit
c2605e72b6
3 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ public class Action implements Updatable {
|
|||
reader.close ();
|
||||
String content = new String (cbuf);
|
||||
update (content);
|
||||
} catch (Exception filex) {
|
||||
} catch (Throwable filex) {
|
||||
app.logEvent ("*** Error reading action file "+file+": "+filex);
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ public class FunctionFile implements Updatable {
|
|||
EvaluationSource es = new FileEvaluationSource(file.getPath(), null);
|
||||
updateRequestEvaluator (reval, fr, es);
|
||||
|
||||
} catch (Exception ignore) {}
|
||||
} catch (Throwable ignore) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ public class Template extends Action {
|
|||
pfunc = parseFunction (name,
|
||||
"arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10",
|
||||
body+"\r\nreturn null;\r\n");
|
||||
} catch (Exception x) {
|
||||
} catch (Throwable x) {
|
||||
String message = x.getMessage ();
|
||||
pfunc = new ErrorFeedback (name, message);
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ public class Template extends Action {
|
|||
psfunc = parseFunction (fname,
|
||||
"arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10",
|
||||
"res.pushStringBuffer(); "+body+"\r\nreturn res.popStringBuffer();\r\n");
|
||||
} catch (Exception x) {
|
||||
} catch (Throwable x) {
|
||||
String message = x.getMessage ();
|
||||
psfunc = new ErrorFeedback (fname, message);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue