mirror of https://github.com/node-red/node-red.git
Fix error log in runtime hooks module
parent
1a30fe4a1a
commit
79a142fb19
|
@ -101,7 +101,7 @@ function add(hookId, callback) {
|
|||
function remove(hookId) {
|
||||
let [id,label] = hookId.split(".");
|
||||
if ( !label) {
|
||||
throw new Error("Cannot remove hook without label: ",hookId)
|
||||
throw new Error("Cannot remove hook without label: "+hookId)
|
||||
}
|
||||
Log.debug(`Removing hook '${hookId}'`);
|
||||
if (labelledHooks[label]) {
|
||||
|
|
Loading…
Reference in New Issue