From 2f9fe2cfad83416647beed9c3c9085d686c43b09 Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Sat, 14 Feb 2015 23:11:57 +0100 Subject: Initial commit. --- app/views/errors/404.html | 20 ++++++++++++++++++++ app/views/errors/500.html | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 app/views/errors/404.html create mode 100644 app/views/errors/500.html (limited to 'app/views/errors') diff --git a/app/views/errors/404.html b/app/views/errors/404.html new file mode 100644 index 0000000..ebdfe10 --- /dev/null +++ b/app/views/errors/404.html @@ -0,0 +1,20 @@ + + + + Not found + + +{{if eq .RunMode "dev"}} +{{template "errors/404-dev.html" .}} +{{else}} + {{with .Error}} +

+ {{.Title}} +

+

+ {{.Description}} +

+ {{end}} +{{end}} + + diff --git a/app/views/errors/500.html b/app/views/errors/500.html new file mode 100644 index 0000000..0cef4de --- /dev/null +++ b/app/views/errors/500.html @@ -0,0 +1,16 @@ + + + + Application error + + + {{if eq .RunMode "dev"}} + {{template "errors/500-dev.html" .}} + {{else}} +

Oops, an error occured

+

+ This exception has been logged. +

+ {{end}} + + -- cgit v1.2.3