diff --git a/src/nodes/ts3-call/ts3-call.ts b/src/nodes/ts3-call/ts3-call.ts index fc44512..464b8ad 100644 --- a/src/nodes/ts3-call/ts3-call.ts +++ b/src/nodes/ts3-call/ts3-call.ts @@ -37,7 +37,12 @@ const nodeInit: NodeInitializer = (RED): void => { }else{ args = [msg.payload] } - msg.payload = await member.apply(client,args) + + try { + msg.payload = await member.apply(client,args) + } catch (err) { + this.error(`Failed to call ${config.selection}: ${err}`) + } send(msg) }else{ @@ -46,6 +51,7 @@ const nodeInit: NodeInitializer = (RED): void => { done() }) + } RED.nodes.registerType("ts3-call", Ts3Call); diff --git a/src/nodes/ts3-call/ui/editor.html b/src/nodes/ts3-call/ui/editor.html index 37417ef..83e7223 100644 --- a/src/nodes/ts3-call/ui/editor.html +++ b/src/nodes/ts3-call/ui/editor.html @@ -9,72 +9,151 @@