Skip to content

Commit

Permalink
Clarify bad path for directory handler message
Browse files Browse the repository at this point in the history
  • Loading branch information
prashaantt committed Jan 22, 2016
1 parent 0b33f1e commit 5540383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/directory.js
Expand Up @@ -31,7 +31,7 @@ internals.schema = Joi.object({
exports.handler = function (route, options) {

const settings = Joi.attempt(options, internals.schema, 'Invalid directory handler options (' + route.path + ')');
Hoek.assert(route.path[route.path.length - 1] === '}', 'The route path must end with a parameter:', route.path);
Hoek.assert(route.path[route.path.length - 1] === '}', 'The route path for a directory handler must end with a parameter:', route.path);

const normalize = (paths) => {

Expand Down

0 comments on commit 5540383

Please sign in to comment.