You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* one entry for each dependency with the first item being the key thats required by the second item
200
200
*
@@ -225,11 +225,14 @@ class Asset extends MetadataType {
225
225
dependencies.push([undefined,key]);
226
226
}
227
227
}catch(ex){
228
-
if(ex.code!==200){
229
-
Util.logger.errorStack(ex,'Cannot find related code blocks for '+key);
228
+
if(ex.code===200){
229
+
// no dependent keys found
230
+
dependencies.push([undefined,key]);
231
+
}else{
232
+
Util.logger.error(
233
+
` ☇ skipping ${this.definition.type}${key}: content block ${ex.message} that is referenced via ContentBlockByX was not found on BU nor in deployment package`
234
+
);
230
235
}
231
-
// no dependent keys found
232
-
dependencies.push([undefined,key]);
233
236
}
234
237
}
235
238
@@ -240,7 +243,9 @@ class Asset extends MetadataType {
240
243
constmetadataTypeMapSorted={};
241
244
// group subtypes per type
242
245
for(constkeyofflatList){
243
-
metadataTypeMapSorted[key]=metadataMap[key];
246
+
if(metadataMap[key]){
247
+
metadataTypeMapSorted[key]=metadataMap[key];
248
+
}
244
249
}
245
250
returnmetadataTypeMapSorted;
246
251
}
@@ -253,12 +258,13 @@ class Asset extends MetadataType {
0 commit comments