avoid notfound message if error template wasnt found
and display original error message instead.
This commit is contained in:
parent
b78f45ddaf
commit
4b439b9d20
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue