summaryrefslogtreecommitdiffstats
path: root/res/controllers/midi-components-0.0.js
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-03-11 10:39:45 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-03-11 10:53:50 +0100
commit2f95d2d61497ccfd448bc0f7aab6b429ff56a728 (patch)
tree3d3a3e006ddd606e19a64079b82e95319d9aa5e4 /res/controllers/midi-components-0.0.js
parentf3a954e46c50f5e40885a4d41c6f2229d9054acf (diff)
res/controllers/midi-components-0.0.js: Throw error if sendRGB is undefined
Diffstat (limited to 'res/controllers/midi-components-0.0.js')
-rw-r--r--res/controllers/midi-components-0.0.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/controllers/midi-components-0.0.js b/res/controllers/midi-components-0.0.js
index 7294809e52..63f1154d29 100644
--- a/res/controllers/midi-components-0.0.js
+++ b/res/controllers/midi-components-0.0.js
@@ -331,8 +331,7 @@
this.send(nearestColorValue);
} else {
if (this.sendRGB === undefined) {
- print("ERROR: no function defined for sending RGB colors");
- return;
+ throw Error("sendRGB(color) not defined - unable to send RGB colors!");
}
this.sendRGB(colorCodeToObject(colorCode));
}