Skip to content
Snippets Groups Projects
Commit f857be98 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

loading info is hid when 404 is returned

parent c2149a0b
No related branches found
No related tags found
1 merge request!11Resolve "Rest API should follow google guidlines"
......@@ -85,6 +85,10 @@ ServerConnector.readFile = function(url, description) {
}).then(function(result) {
content = result;
return self.callListeners("onDataLoadStop", description);
}, function(error) {
return self.callListeners("onDataLoadStop", description).then(function() {
return Promise.reject(error);
});
}).then(function() {
return content;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment