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

Commit 96a4732

Browse files
committed
Fix getDocumentationVersion error (#173)
1 parent 26fc84d commit 96a4732

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/documentation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ module.exports = function() {
104104
console.info(msg);
105105
return Promise.reject(msg);
106106
}, err => {
107-
if (err.message === 'Invalid Documentation version specified') {
107+
if (err.message === 'Invalid Documentation version specified' ||
108+
(err.providerError && err.providerError.code === 'NotFoundException')) {
108109
return Promise.resolve();
109110
}
110111

0 commit comments

Comments
 (0)