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

Description
When AWS getDocumentationVersion is called and that there is no existing version for the API, the error catching is not performed properly and ends up in the error: 'Invalid Documentation version specified'
Not sure but this maybe due to a difference in the way serverless manages the error when calling AWS API.
Now the proper way to handle this is to test (err.providerError && err.providerError.code === 'NotFoundException')) instead of testing err.message === 'Invalid Documentation version specified'.