You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
This commit is contained in:
@@ -68,10 +68,8 @@ void WebRTCDataChannelJS::_on_error() {
|
||||
}
|
||||
|
||||
void WebRTCDataChannelJS::_on_message(uint8_t *p_data, uint32_t p_size, bool p_is_string) {
|
||||
if (in_buffer.space_left() < (int)(p_size + 5)) {
|
||||
ERR_EXPLAIN("Buffer full! Dropping data");
|
||||
ERR_FAIL();
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_MSG(in_buffer.space_left() < (int)(p_size + 5), "Buffer full! Dropping data.");
|
||||
|
||||
uint8_t is_string = p_is_string ? 1 : 0;
|
||||
in_buffer.write((uint8_t *)&p_size, 4);
|
||||
|
||||
Reference in New Issue
Block a user