mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
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:
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(
|
||||
|
||||
Reference in New Issue
Block a user