Skip to content
Snippets Groups Projects
Commit 1d7030a1 authored by felmer's avatar felmer
Browse files

SSDM-9037: improve error message if moving failed

parent 9bde3493
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,11 @@ function MoveEntityController(entityType, entityPermId) {
waitForIndexUpdate();
};
var fail = function(error) {
Util.showError("Move failed: " + JSON.stringify(error));
var msg = JSON.stringify(error);
if (error && error.data && error.data.message) {
msg = error.data.message;
}
Util.showError("Move failed: " + msg);
};
switch(entityType) {
......
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