From 02dbec2d07093552bc5949de7ed13966b6400c19 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 27 Aug 2001 17:55:25 +0000 Subject: [PATCH] Do the "catch Throwable" at the right spot so we can generate an error message if the action is called. --- src/helma/framework/core/Action.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/Action.java b/src/helma/framework/core/Action.java index a36ca68a..535dc226 100644 --- a/src/helma/framework/core/Action.java +++ b/src/helma/framework/core/Action.java @@ -69,7 +69,7 @@ public class Action implements Updatable { reader.close (); String content = new String (cbuf); update (content); - } catch (Throwable filex) { + } catch (IOException filex) { app.logEvent ("*** Error reading action file "+file+": "+filex); } @@ -85,7 +85,7 @@ public class Action implements Updatable { try { pfunc = parseFunction (functionName, "arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10", content); - } catch (Exception x) { + } catch (Throwable x) { String message = x.getMessage (); pfunc = new ErrorFeedback (functionName, message); }