Skip to content

Commit

Permalink
fix: error message for empty object (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Jul 18, 2019
1 parent 692b437 commit 0b4b4a2
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/ValidationError.js
Expand Up @@ -482,7 +482,7 @@ class ValidationError extends Error {
);
}

return `object${objectStructure ? ` { ${objectStructure} }` : ''}${
return `object {${objectStructure ? ` ${objectStructure} ` : ''}}${
hints.length > 0 ? ` (${hints.join(', ')})` : ''
}`;
}
Expand Down

0 comments on commit 0b4b4a2

Please sign in to comment.