summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-04-01 11:48:19 -0400
committerChristopher Speller <crspeller@gmail.com>2016-04-01 11:51:17 -0400
commit7e9c7ce60a90f3628888f178c27642561643abaa (patch)
tree5f4ec04e9d7d62213d8daac7ddafe8e864a5feff /templates
parent36f611fac48536f26770357de8d5b6767bd46d2f (diff)
downloadchat-7e9c7ce60a90f3628888f178c27642561643abaa.tar.gz
chat-7e9c7ce60a90f3628888f178c27642561643abaa.tar.bz2
chat-7e9c7ce60a90f3628888f178c27642561643abaa.zip
Visiting invalid URLs and bad APIs causes redirect to error page
Diffstat (limited to 'templates')
-rw-r--r--templates/error.html24
1 files changed, 0 insertions, 24 deletions
diff --git a/templates/error.html b/templates/error.html
deleted file mode 100644
index 5aa48098f..000000000
--- a/templates/error.html
+++ /dev/null
@@ -1,24 +0,0 @@
-{{define "error"}}
-<!DOCTYPE html>
-<html>
-{{template "head" . }}
-<body class="sticky error">
- <div class="container-fluid">
- <div class="error__container">
- <div class="error__icon">
- <i class="fa fa-exclamation-triangle"/>
- </div>
- <h2>{{.Props.Title}}</h2>
- <p>{{ .Props.Message }}</p>
- <a href="{{.Props.SiteURL}}">{{.Props.Link}}</a>
- </div>
- </div>
-</body>
-<script>
-var details = {{ .Props.Details }};
-if (details.length > 0) {
- console.log("error details: " + details);
-}
-</script>
-</html>
-{{end}}