diff --git a/package.json b/package.json
index d752bfc..5648387 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "MicroflowTimer",
- "version": "4.0.1",
+ "version": "4.0.2",
"description": "",
"license": "",
"author": "",
diff --git a/src/MicroflowTimer/MicroflowTimer.xml b/src/MicroflowTimer/MicroflowTimer.xml
index ba8e3e5..2e3b3ce 100644
--- a/src/MicroflowTimer/MicroflowTimer.xml
+++ b/src/MicroflowTimer/MicroflowTimer.xml
@@ -64,6 +64,11 @@
+
+
+ Show error in a pop-up
+ Behavior
+ If true, the microflow or nanoflow execution errors will be shown in a pop-up.
diff --git a/src/MicroflowTimer/widget/MicroflowTimer.js b/src/MicroflowTimer/widget/MicroflowTimer.js
index abcd1d2..e1250cc 100644
--- a/src/MicroflowTimer/widget/MicroflowTimer.js
+++ b/src/MicroflowTimer/widget/MicroflowTimer.js
@@ -18,6 +18,7 @@ define([
firstIntervalAttr: null,
intervalAttr: null,
timerStatusAttr: null,
+ showerrorpopup: true,
// Internal variables. Non-primitives created in the prototype are shared between all widget instances.
_handles: null,
@@ -198,7 +199,9 @@ define([
}),
error: lang.hitch(this, function(error) {
logger.error(this.id + ": An error ocurred while executing microflow: ", error);
- mx.ui.error("An error ocurred while executing microflow" + error.message);
+ if (this.showerrorpopup) {
+ mx.ui.error("An error ocurred while executing microflow" + error.message);
+ }
})
};
@@ -228,7 +231,9 @@ define([
}),
error: lang.hitch(this, function(error) {
logger.error(this.id + ": An error ocurred while executing nanoflow: ", error);
- mx.ui.error("An error ocurred while executing nanoflow" + error.message);
+ if (this.showerrorpopup) {
+ mx.ui.error("An error ocurred while executing nanoflow" + error.message);
+ }
})
});
}