Commit 9dbaf1c3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

handle forbidden response code properly

parent 154e2555
......@@ -18,6 +18,8 @@ minerva (14.0.8) stable; urgency=medium
non-default Browser zoom level (#1048)
* Bug fix: project without background overlay but with some custom data
overlays crashed with an error (#1066)
* Bug fix: when session expires updating options in configuration panel threw
unhandled error (#1068)
-- Piotr Gawron <piotr.gawron@uni.lu> Thu, 23 Jan 2020 12:00:00 +0200
......
......@@ -1107,7 +1107,9 @@ ServerConnector.updateConfigurationOption = function (option) {
value: option.getValue()
}
};
return self.sendPatchRequest(self.getConfigurationOptionUrl(queryParams), filterParams);
return self.sendPatchRequest(self.getConfigurationOptionUrl(queryParams), filterParams).catch(function (error) {
return self._processUpdateError(error);
});
};
ServerConnector.getModels = function (projectId) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment