[json] no problem marker when schema can not be loaded

This commit is contained in:
Martin Aeschlimann 2016-07-28 14:48:28 +02:00
parent 035446d127
commit 0664d43e92

View file

@ -102,7 +102,7 @@ let schemaRequestService = (uri:string): Thenable<string> => {
return xhr({ url: uri, followRedirects: 5 }).then(response => {
return response.responseText;
}, (error: XHRResponse) => {
return error.responseText || getErrorStatusDescription(error.status) || error.toString();
return Promise.reject(error.responseText || getErrorStatusDescription(error.status) || error.toString());
});
};