Improve error message (#19671)

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
fisker Cheung
2026-07-19 10:25:41 +08:00
committed by GitHub
co-authored by Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
parent 351e399362
commit 4716e5f575
@@ -145,7 +145,7 @@ function createDependenciesLicenseBuilder({ packageDisplayName }) {
const dependencies = getDependencies(results);
if (dependencies.length === 0) {
throw new Error("Fail to collect dependencies.");
throw new Error("Failed to collect dependencies.");
}
const text = getLicenseText(