Skip to content

Commit d293ed2

Browse files
authored
Improve error in case of failed catalog.json entry search (SchemaStore#4693)
1 parent 73fd8db commit d293ed2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ function printErrorAndExit(error, messages, extraText) {
385385
console.warn('---')
386386
if (error instanceof Error && error?.stack) {
387387
process.stderr.write(error.stack)
388+
process.stderr.write('\n')
388389
}
389390
process.exit(1)
390391
}
@@ -1153,6 +1154,7 @@ async function assertCatalogJsonLocalURLsAreOneToOne() {
11531154
if (!allCatalogLocalJsonFiles.includes(schemaName)) {
11541155
printErrorAndExit(new Error(), [
11551156
`Expected schema file "${schemaName}" to have a corresponding entry in the catalog file "${CatalogFile}"`,
1157+
`Expected to find entry with "url" of "${UrlSchemaStore}${schemaName}"`,
11561158
`If this is intentional, ignore this error by appending to the property "missingCatalogUrl" in file "${SchemaValidationFile}"`,
11571159
])
11581160
}

0 commit comments

Comments
 (0)