From af1f4677c685e8a2c4967ffa0350d314a6543db7 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Thu, 5 Feb 2015 02:55:30 +0100 Subject: Init --- 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