Skip to content

Commit

Permalink
Add detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mittsh committed Nov 28, 2015
1 parent 83d561c commit 85c4a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwaggerImporter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ SwaggerImporter = ->
valid = tv4.validate swaggerCollection, JSON.parse(schema)

if not valid
throw new Error "Invalid Swagger file (invalid schema or schema version < 2.0)"
throw new Error "Invalid Swagger file (invalid schema or schema version < 2.0):\n#{ tv4.error }"

if swaggerCollection

Expand Down

0 comments on commit 85c4a5c

Please sign in to comment.