mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix error log in runtime hooks module
This commit is contained in:
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
Block a user