Skip to content

Commit

Permalink
catch error (#1002)
Browse files Browse the repository at this point in the history
* catch error

* remove notifyTaskDone
  • Loading branch information
sammachin authored and davehorton committed Dec 13, 2024
1 parent 6889f0e commit a4c0839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ ecosystem.config.js
test/credentials/*.json
run-tests.sh
run-coverage.sh
.vscode
.vscode
.env
5 changes: 4 additions & 1 deletion lib/tasks/sip_refer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ class TaskSipRefer extends Task {
}
if (status >= 200) {
this.referSpan.setAttributes({'refer.finalNotify': status});
await this.performAction({refer_status: 202, final_referred_call_status: status});
await this.performAction({refer_status: 202, final_referred_call_status: status})
.catch((err) => {
this.logger.error(err, 'TaskSipRefer:exec - error performing action finalNotify');
});
this.notifyTaskDone();
}
}
Expand Down

0 comments on commit a4c0839

Please sign in to comment.