Skip to content

Commit

Permalink
#1914: make dataExtension not found error easier to understand when t…
Browse files Browse the repository at this point in the history
…rying to delete
  • Loading branch information
JoernBerkefeld committed Dec 4, 2024
1 parent 7535c95 commit 840bd6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/MetadataType.d.ts.map

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

4 changes: 3 additions & 1 deletion lib/metadataTypes/MetadataType.js
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,9 @@ class MetadataType {
} else {
const errorMsg = ex?.results?.length
? `${ex.results[0].StatusMessage} (Code ${ex.results[0].ErrorCode})`
: ex.message;
: ex?.json?.Results?.length
? `${ex.json.Results[0].StatusMessage} (Code ${ex.json.Results[0].ErrorCode})`
: ex.message;
Util.logger.error(
` - Deleting ${this.definition.type} '${customerKey}' failed: ${errorMsg}`
);
Expand Down

0 comments on commit 840bd6c

Please sign in to comment.