hdoc-tools 0.33.1 → 0.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hdoc-validate.js +6 -1
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
@@ -571,7 +571,12 @@ const e = require("express");
|
|
571
571
|
`Link is a valid external URL: ${links[i]}`,
|
572
572
|
);
|
573
573
|
} catch (e) {
|
574
|
-
|
574
|
+
let error_message;
|
575
|
+
if (e instanceof AggregateError) {
|
576
|
+
error_message = processErrorMessage(`Issue with external link [${links[i]}]: ${e.message} - ${JSON.stringify(e.errors)}`, markdown_paths.relativePath, markdown_content, links[i]);
|
577
|
+
} else {
|
578
|
+
error_message = processErrorMessage(`Issue with external link [${links[i]}]: ${e}`, markdown_paths.relativePath, markdown_content, links[i]);
|
579
|
+
}
|
575
580
|
errors[htmlFile.relativePath].push(error_message);
|
576
581
|
}
|
577
582
|
}
|