fix for #761
This commit is contained in:
2
dist/lib/swagger.js
vendored
2
dist/lib/swagger.js
vendored
@@ -1506,7 +1506,7 @@
|
|||||||
try {
|
try {
|
||||||
out.obj = JSON.parse(response.content.data);
|
out.obj = JSON.parse(response.content.data);
|
||||||
}
|
}
|
||||||
catch () {
|
catch (ex) {
|
||||||
// do not set out.obj
|
// do not set out.obj
|
||||||
log ("unable to parse JSON content");
|
log ("unable to parse JSON content");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1506,7 +1506,7 @@
|
|||||||
try {
|
try {
|
||||||
out.obj = JSON.parse(response.content.data);
|
out.obj = JSON.parse(response.content.data);
|
||||||
}
|
}
|
||||||
catch () {
|
catch (ex) {
|
||||||
// do not set out.obj
|
// do not set out.obj
|
||||||
log ("unable to parse JSON content");
|
log ("unable to parse JSON content");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user