Comparing version 0.0.10 to 0.0.11
@@ -18,3 +18,3 @@ const htmlEncode = require('js-htmlencode'); | ||
getHtml() { | ||
html() { | ||
let mainInfo = ''; | ||
@@ -21,0 +21,0 @@ let lines = this.stack.split('\n'); |
{ | ||
"name": "raz", | ||
"description": "Razor-like syntax for templating views in Express framework by mixing HTML with JavaScript.", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sergey", |
@@ -85,3 +85,3 @@ //'use strict'; | ||
if (env !== "production" && err instanceof RazorError) { | ||
var errorHtml = err.getHtml(); | ||
var errorHtml = err.html(); | ||
res.status(500); | ||
@@ -88,0 +88,0 @@ res.send(errorHtml); |
146499