Skip to content

Commit

Permalink
Merge pull request #1887 from Accenture/bug/1881-gracefully-handle-jo…
Browse files Browse the repository at this point in the history
…urney-key-not-found

bug/1881 handle bad journey retrieve-by-key responses gracefully
  • Loading branch information
JoernBerkefeld authored Nov 21, 2024
2 parents 15293dc + 768de08 commit 9542722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/Journey.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/metadataTypes/Journey.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ class Journey extends MetadataType {
[
'Interaction matching key not found.',
'Must provide a valid ID or Key parameter',
].includes(ex.message)
].includes(ex.message) ||
(key && ex.code === 'ERR_BAD_REQUEST')
) {
Util.logger.info(
`Downloaded: ${this.definition.type} (0)${Util.getKeysString(
Expand Down

0 comments on commit 9542722

Please sign in to comment.