Skip to content

Commit

Permalink
minor change to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Dec 29, 2015
1 parent aacb9ea commit eb148e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/validate-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function validateSchema(api) {
}
else {
var err = ZSchema.getLastError();
var message = 'Swagger schema validation failed. ' + formatZSchemaError(err.details);
var message = 'Swagger schema validation failed. \n' + formatZSchemaError(err.details);
throw ono.syntax(err, {details: err.details}, message);
}
}
Expand Down Expand Up @@ -54,7 +54,7 @@ function formatZSchemaError(errors, indent) {
indent = indent || ' ';
var message = '';
errors.forEach(function(error, index) {
message += util.format('\n%s%s at %s', indent, error.message, error.path.join('/'));
message += util.format('%s%s at #/%s\n', indent, error.message, error.path.join('/'));
if (error.inner) {
message += formatZSchemaError(error.inner, indent + ' ');
}
Expand Down

0 comments on commit eb148e2

Please sign in to comment.