From 85c4a5c2a34bdff26093551bb4e646c03f2f2802 Mon Sep 17 00:00:00 2001 From: Micha Mazaheri Date: Sat, 28 Nov 2015 19:37:27 +0100 Subject: [PATCH] Add detailed error message --- SwaggerImporter.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwaggerImporter.coffee b/SwaggerImporter.coffee index e107ff9..5208b46 100644 --- a/SwaggerImporter.coffee +++ b/SwaggerImporter.coffee @@ -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