Add API Framework Revel Source Files
[iec.git] / src / foundation / api / revel / templates / errors / 500.txt
diff --git a/src/foundation/api/revel/templates/errors/500.txt b/src/foundation/api/revel/templates/errors/500.txt
new file mode 100644 (file)
index 0000000..dde13f4
--- /dev/null
@@ -0,0 +1,15 @@
+{{.Error.Title}}
+{{.Error.Description}}
+
+{{if eq .RunMode "dev"}}
+{{with .Error}}
+{{if .Path}}
+----------
+In {{.Path}} {{if .Line}}(around line {{.Line}}){{end}}
+
+{{range .ContextSource}}
+{{if .IsError}}>{{else}} {{end}} {{.Line}}: {{.Source}}{{end}}
+
+{{end}}
+{{end}}
+{{end}}