mirror of
https://github.com/node-red/node-red
synced 2024-11-23 08:59:13 +00: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