Skip to content

Commit 4ffe3ad

Browse files
committed
Show error from backend
1 parent 6f6cc4f commit 4ffe3ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/static-webserver/client/source/class/osparc/desktop/organizations/OrganizationsList.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ qx.Class.define("osparc.desktop.organizations.OrganizationsList", {
298298
});
299299
})
300300
.catch(err => {
301-
osparc.FlashMessenger.getInstance().logAs(this.tr("Something went wrong creating ") + name, "ERROR");
301+
const errorMessage = err["message"] || this.tr("Something went wrong creating ") + name;
302+
osparc.FlashMessenger.getInstance().logAs(errorMessage, "ERROR");
302303
button.setFetching(false);
303304
console.error(err);
304305
})

0 commit comments

Comments
 (0)