Skip to content

Commit

Permalink
Merge pull request #103 from Morilli/improve-error-message
Browse files Browse the repository at this point in the history
Improve swagger error message
  • Loading branch information
Pupix authored Jan 9, 2020
2 parents 1112bfe + abe28c8 commit 1397668
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
const messageBar = document.querySelector('#message-bar');

let LCUData = null;
let swaggerDisabled = true;

// We all love global variables
window.RE = {
Expand Down
2 changes: 1 addition & 1 deletion app/swagger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ SwaggerClient.prototype.build = function (mock) {
} else if (response.status === 0) {
return self.fail('Can\'t read from server. It may not have the appropriate access-control-origin settings.');
} else if (response.status === 404) {
return self.fail('Can\'t load Swagger. Make sure it\'s enabled in system.yaml');
return self.fail('Can\'t load Swagger. Make sure to leave the system.yaml unmodified and try restarting.');
} else {
return self.fail(response.status + ' : ' + response.statusText + ' ' + self.url);
}
Expand Down

0 comments on commit 1397668

Please sign in to comment.