Skip to content

Commit

Permalink
Update message status to failed if twilio request failed
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemhall committed Jun 20, 2023
1 parent a1a978e commit eb40751
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Koha/Plugin/Com/ByWaterSolutions/TwilioVoice.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ sub before_send_messages {

unless ($response->is_success) {
warn "Twilio response indicates failure: " . $response->status_line;
$m->status('failed');
$m->update();
}
}
}
Expand Down

0 comments on commit eb40751

Please sign in to comment.