Skip to content

Commit

Permalink
Merge pull request #695 from ssbarnea/wip/no-content
Browse files Browse the repository at this point in the history
Make no content error more informative
  • Loading branch information
msivasubramaniaan authored Apr 8, 2022
2 parents 098496e + 9c73464 commit cb85ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/languageservice/services/yamlSchemaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,8 +626,9 @@ export class YAMLSchemaService extends JSONSchemaService {
if (!content) {
const errorMessage = localize(
'json.schema.nocontent',
"Unable to load schema from '{0}': No content.",
toDisplayString(schemaUri)
"Unable to load schema from '{0}': No content. {1}",
toDisplayString(schemaUri),
unresolvedJsonSchema.errors
);
return new UnresolvedSchema(<JSONSchema>{}, [errorMessage]);
}
Expand Down

0 comments on commit cb85ff7

Please sign in to comment.