mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
simplify error message
This commit is contained in:
@@ -138,7 +138,7 @@ class Task extends Emitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
notifyError(errMsg) {
|
notifyError(errMsg) {
|
||||||
const params = {error: errMsg, ...this.cs.callInfo.toJSON()};
|
const params = {error: errMsg, verb: this.name};
|
||||||
this.cs.requestor.request('jambonz:error', '/error', params)
|
this.cs.requestor.request('jambonz:error', '/error', params)
|
||||||
.catch((err) => this.logger.info({err}, 'Task:notifyError error sending error'));
|
.catch((err) => this.logger.info({err}, 'Task:notifyError error sending error'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user