Skip to content

Commit 90703ba

Browse files
authored
🐛 [Frontend] Fix: show support id when pipeline fails to start (#7874)
1 parent 8fdc79f commit 90703ba

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

services/static-webserver/client/source/class/osparc/FlashMessenger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,14 @@ qx.Class.define("osparc.FlashMessenger", {
105105
allowGrowX: false,
106106
});
107107
errorLabel.addListener("tap", () => {
108+
const currentStudy = osparc.store.Store.getInstance().getCurrentStudy();
108109
const dataToClipboard = {
109110
message,
110111
supportId,
111112
timestamp: new Date().toString(),
112113
url: window.location.href,
113114
releaseTag: osparc.utils.Utils.getReleaseTag(),
114-
studyId: osparc.store.Store.getInstance().getCurrentStudy() || "",
115+
studyId: currentStudy ? currentStudy.getUuid() : "",
115116
}
116117
osparc.utils.Utils.copyTextToClipboard(osparc.utils.Utils.prettifyJson(dataToClipboard));
117118
});

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,8 @@ qx.Class.define("osparc.desktop.StudyEditor", {
618618
this.__requestStartPipeline(studyId, partialPipeline, true);
619619
}
620620
}, this);
621-
} else if (err.status == "402") {
622-
osparc.FlashMessenger.logAs(msg, "WARNING");
623621
} else {
624-
osparc.FlashMessenger.logAs(msg, "WARNING");
622+
osparc.FlashMessenger.logError(err);
625623
this.getStudyLogger().error(null, "Unsuccessful pipeline submission");
626624
}
627625
this.getStudy().setPipelineRunning(false);

0 commit comments

Comments
 (0)