Skip to content

Commit 24309cc

Browse files
committed
better react to a 409
1 parent 562497c commit 24309cc

File tree

1 file changed

+4
-3
lines changed
  • services/static-webserver/client/source/class/osparc/desktop

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,13 +727,14 @@ qx.Class.define("osparc.desktop.StudyEditor", {
727727
osparc.data.Resources.fetch("runPipeline", "startPipeline", params)
728728
.then(resp => this.__onPipelineSubmitted(resp))
729729
.catch(err => {
730-
let msg = err.message;
731730
const errStatus = err.status;
732731
if (errStatus == "409") {
733-
this.getStudyLogger().error(null, "Pipeline is already running");
732+
osparc.FlashMessenger.logError(err);
733+
const msg = osparc.FlashMessenger.extractMessage(err);
734+
this.getStudyLogger().error(null, msg);
734735
} else if (errStatus == "422") {
735736
this.getStudyLogger().info(null, "The pipeline is up-to-date");
736-
msg = this.tr("The pipeline is up-to-date. Do you want to re-run it?");
737+
const msg = this.tr("The pipeline is up-to-date. Do you want to re-run it?");
737738
const win = new osparc.ui.window.Confirmation(msg).set({
738739
caption: this.tr("Re-run"),
739740
confirmText: this.tr("Run"),

0 commit comments

Comments
 (0)