avoid notfound message if error template wasnt found

and display original error message instead.
This commit is contained in:
hns 2001-02-01 19:10:13 +00:00
parent b78f45ddaf
commit 4b439b9d20

View file

@ -267,6 +267,10 @@ public class RequestEvaluator implements Runnable {
throw new FrameworkException ("Action not found");
} catch (FrameworkException notfound) {
if (error != null)
// we already have an error and the error template wasn't found,
// display it instead of notfound message
throw new RuntimeException ();
// The path could not be resolved. Check if there is a "not found" action
// specified in the property file.
String notFoundAction = app.props.getProperty ("notFound", "notfound");