Fix error log in runtime hooks module

This commit is contained in:
Nick O'Leary 2021-05-13 13:40:42 +01:00
parent 1a30fe4a1a
commit 79a142fb19
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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]) {