Skip to content

Commit

Permalink
Updated uri.js, fixed bug with Report#addError() found by cellog.
Browse files Browse the repository at this point in the history
  • Loading branch information
garycourt committed Jun 28, 2011
1 parent 981bf43 commit 0aa1185
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 95 deletions.
2 changes: 1 addition & 1 deletion lib/jsv.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ var exports = exports || this,
Report.prototype.addError = function (instance, schema, attr, message, details) {
this.errors.push({
uri : instance instanceof JSONInstance ? instance.getURI() : instance,
schemaUri : instance instanceof JSONInstance ? schema.getURI() : schema,
schemaUri : schema instanceof JSONInstance ? schema.getURI() : schema,
attribute : attr,
message : message,
details : details
Expand Down
Loading

0 comments on commit 0aa1185

Please sign in to comment.