Skip to content

Commit

Permalink
Fix getDocumentationVersion error (deliveryhero#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocoudoin committed Apr 14, 2021
1 parent 26fc84d commit 6db5a24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ module.exports = function() {
console.info(msg);
return Promise.reject(msg);
}, err => {
if (err.message === 'Invalid Documentation version specified') {
if (err.code === 'NotFoundException' ||
(err.providerError && err.providerError.code === 'NotFoundException')) {
return Promise.resolve();
}

Expand Down

0 comments on commit 6db5a24

Please sign in to comment.