Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Fix getDocumentationVersion error (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocoudoin committed Apr 15, 2021
1 parent 26fc84d commit 96a4732
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.message === 'Invalid Documentation version specified' ||
(err.providerError && err.providerError.code === 'NotFoundException')) {
return Promise.resolve();
}

Expand Down

0 comments on commit 96a4732

Please sign in to comment.