Skip to content

Commit 947c710

Browse files
author
Adam Collins
committed
#613 add occurrenceNotFound.gsp
1 parent 57e8fa0 commit 947c710

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

grails-app/controllers/au/org/ala/biocache/hubs/OccurrenceController.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ class OccurrenceController {
483483
flash.message = "${ex.message}"
484484

485485
if (ex.getMessage() && ex.getMessage().contains("HTTP 404")) {
486-
render view: '../notFound'
486+
render view: '../occurrenceNotFound'
487487
} else {
488488
render view: '../error'
489489
}
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Page Not Found</title>
5+
<meta name="layout" content="${grailsApplication.config.getProperty('skin.layout')}">
6+
<g:if env="development"><asset:stylesheet src="errors.css"/></g:if>
7+
</head>
8+
<body>
9+
<ul class="errors">
10+
<li>Page not found</li>
11+
<li>The requested record was not found. The supplied record ID is either incorrect or has been removed or replaced.</li>
12+
</ul>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)