From 96a473270e2fae31b3915fa9e4048d593bf6de76 Mon Sep 17 00:00:00 2001 From: Bruno Coudoin Date: Wed, 14 Apr 2021 23:02:40 +0200 Subject: [PATCH] Fix getDocumentationVersion error (#173) --- src/documentation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/documentation.js b/src/documentation.js index 4862832..3246679 100644 --- a/src/documentation.js +++ b/src/documentation.js @@ -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(); }