Comparing version 0.1.0-beta-28 to 0.1.0-beta-29
@@ -36,3 +36,3 @@ "use strict"; | ||
pattern: this.config.errorUrl, | ||
route: this.config.errorRoute | ||
route: this.config.errorRoute ? this.config.errorRoute : 'core/error' | ||
}); | ||
@@ -77,3 +77,3 @@ }, | ||
if (!(rule instanceof RouteRuleInterface)) { | ||
throw new error.HttpError(500, {rule: rule}, 'Router.add: rule must be instance of RouteRuleInterface'); | ||
throw new error.HttpError(500, {rule: rule, route: route}, 'Router.add: rule must be instance of RouteRuleInterface'); | ||
} | ||
@@ -80,0 +80,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-28", | ||
"version": "0.1.0-beta-29", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
125010