Skip to content

Commit

Permalink
#613 add occurrenceNotFound.gsp
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Collins committed Feb 21, 2025
1 parent 57e8fa0 commit 947c710
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class OccurrenceController {
flash.message = "${ex.message}"

if (ex.getMessage() && ex.getMessage().contains("HTTP 404")) {
render view: '../notFound'
render view: '../occurrenceNotFound'
} else {
render view: '../error'
}
Expand Down
14 changes: 14 additions & 0 deletions grails-app/views/occurrenceNotFound.gsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<title>Page Not Found</title>
<meta name="layout" content="${grailsApplication.config.getProperty('skin.layout')}">
<g:if env="development"><asset:stylesheet src="errors.css"/></g:if>
</head>
<body>
<ul class="errors">
<li>Page not found</li>
<li>The requested record was not found. The supplied record ID is either incorrect or has been removed or replaced.</li>
</ul>
</body>
</html>

0 comments on commit 947c710

Please sign in to comment.