make send return a sensible name if it is a MasterSend

This commit is contained in:
Paul Davis 2024-04-02 18:09:18 -06:00
parent dc4bf9b8ce
commit 0c56914214
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_b
return string_compose (_("send %1"), (bitslot = s.next_send_id ()));
case Delivery::Foldback:
return string_compose (_("foldback %1"), (bitslot = s.next_aux_send_id ()));
case Delivery::MasterSend:
return string_compose (_("master %1"), (bitslot = s.next_aux_send_id ()));
default:
fatal << string_compose (_("programming error: send created using role %1"), enum_2_string (r)) << endmsg;
abort(); /*NOTREACHED*/