Skip to content

Commit b7a1427

Browse files
committed
1 parent 5fa1423 commit b7a1427

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/swagger.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
],
1010
"description": "swagger.js is a javascript client for use with swaggering APIs.",
11-
"version": "2.0.6",
11+
"version": "2.0.7",
1212
"homepage": "http://swagger.wordnik.com",
1313
"repository": {
1414
"type": "git",

src/swagger.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class SwaggerResource
236236
headers: {}
237237
on:
238238
error: (response) =>
239-
@api.fail "Unable to read api '" + @name + "' from path " + @url + " (server returned " + error.statusText + ")"
239+
@api.fail "Unable to read api '" + @name + "' from path " + @url + " (server returned " + response.statusText + ")"
240240
response: (rawResponse) =>
241241
response = JSON.parse(rawResponse.content.data)
242242
@addApiDeclaration(response)

0 commit comments

Comments
 (0)