From 7e6e824d5655026906b6515070aeb604d2ef3426 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Feb 2023 13:38:29 -0600 Subject: [PATCH] Correctly raise OS error in socketpool_socket_recv_into() --- ports/raspberrypi/common-hal/socketpool/Socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/common-hal/socketpool/Socket.c b/ports/raspberrypi/common-hal/socketpool/Socket.c index fe12f461fbf9..e2b82264baf2 100644 --- a/ports/raspberrypi/common-hal/socketpool/Socket.c +++ b/ports/raspberrypi/common-hal/socketpool/Socket.c @@ -1109,7 +1109,7 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *socket, break; } if (ret == (unsigned)-1) { - return -_errno; + mp_raise_OSError(_errno); } return ret; }