diff options
Diffstat (limited to 'src/input/Udp.cpp')
-rw-r--r-- | src/input/Udp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input/Udp.cpp b/src/input/Udp.cpp index b527530..fa9c286 100644 --- a/src/input/Udp.cpp +++ b/src/input/Udp.cpp @@ -108,8 +108,7 @@ int Udp::readFrame(uint8_t* buffer, size_t size) int Udp::setBitrate(int bitrate) { if (bitrate <= 0) { - etiLog.log(error, "Invalid bitrate (%i)\n", bitrate); - return -1; + throw invalid_argument("Invalid bitrate " + to_string(bitrate) + " for " + m_name); } return bitrate; |