diff --git a/lib/swagger.js b/lib/swagger.js index ae39784b..406a48cc 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -193,7 +193,7 @@ _this.ready = true; return _this.api.selfReflect(); }).error(function(error) { - return _this.fail(error.status + ' : ' + error.statusText + ' ' + _this.url); + return _this.api.fail(error.status + ' : ' + error.statusText + ' ' + _this.url); }); } }