File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ DataPacksErrorHandling.prototype.getSanitizedErrorMessage = async function(jobIn
2929 }
3030
3131 if ( ! newErrorMessage ) {
32- newErrorMessage = `${ dataPack . VlocityDataPackKey } - ${ errorMessage } ` ;
32+ if ( errorMessage ) {
33+ newErrorMessage = `${ dataPack . VlocityDataPackKey } - ${ errorMessage } ` ;
34+ } else {
35+ newErrorMessage = `${ dataPack . VlocityDataPackKey } - Unknown Error` ;
36+ }
3337 } else {
3438 newErrorMessage = this . vlocity . utilityservice . setNamespaceToOrg ( newErrorMessage ) ;
3539
@@ -49,6 +53,11 @@ DataPacksErrorHandling.prototype.getSanitizedErrorMessage = async function(jobIn
4953} ;
5054
5155DataPacksErrorHandling . prototype . getMatchingError = function ( errorMessage , dataPackWithError ) {
56+
57+ if ( ! errorMessage ) {
58+ return ;
59+ }
60+
5261 for ( var key in this . errorHandlingDefinition ) {
5362 var obj = this . errorHandlingDefinition [ key ] ;
5463 var dataPackTypeMatch = false ;
You can’t perform that action at this time.
0 commit comments