Skip to content

Commit ea65232

Browse files
committed
chore(xml): disable falsy errors on missing relations
1 parent 3b9d854 commit ea65232

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/helper/xml-relationship-helper.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,20 @@ export class XmlRelationshipHelper {
139139
targetMode !== 'External' &&
140140
this.archive.fileExists(targetPath) === false
141141
) {
142-
if (check) {
143-
if (typeof sourceArchive.filename === 'string') {
144-
console.error(
145-
'Related content from ' +
146-
sourceArchive.filename +
147-
' not found: ' +
148-
targetFile,
149-
);
150-
} else {
151-
console.error('Related content not found: ' + targetFile);
152-
}
153-
}
142+
// ToDo: There are falsy errors on files that have already been
143+
// copied with another target name.
144+
// if (check) {
145+
// if (typeof sourceArchive.filename === 'string') {
146+
// console.error(
147+
// 'Related content from ' +
148+
// sourceArchive.filename +
149+
// ' not found: ' +
150+
// targetFile,
151+
// );
152+
// } else {
153+
// console.error('Related content not found: ' + targetFile);
154+
// }
155+
// }
154156

155157
if (assert) {
156158
const target = XmlRelationshipHelper.parseRelationTarget(xmlTarget);

0 commit comments

Comments
 (0)