Explorar o código

Hide pre block altogether if error message does not exist

Jake %!s(int64=10) %!d(string=hai) anos
pai
achega
cd7830242e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      views/error.jade

+ 2 - 1
views/error.jade

@@ -4,4 +4,5 @@ block content
   .container.errmsg
     h1= message
     h2= error.status
-    pre #{error.stack}
+    if error.stack
+      pre #{error.stack}