[json] update service (fixes #59470)

This commit is contained in:
Martin Aeschlimann
2018-09-27 16:33:11 +02:00
parent b4d09d2750
commit a75f4bcf4e
3 changed files with 5 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ const schemaRequestService = (uri: string): Thenable<string> => {
const fsPath = URI.parse(uri).fsPath;
return new Promise<string>((c, e) => {
fs.readFile(fsPath, 'UTF-8', (err, result) => {
err ? e('') : c(result.toString());
err ? e(err.message || err.toString()) : c(result.toString());
});
});
} else if (startsWith(uri, 'vscode://')) {