mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Display a more meaningful error message
This commit is contained in:
parent
84b0e15e2b
commit
9279b67319
1 changed files with 2 additions and 2 deletions
|
|
@ -79,8 +79,8 @@ class Connection:
|
|||
async def send(self, data: bytes):
|
||||
try:
|
||||
await self.protocol.send(data)
|
||||
except Exception:
|
||||
raise OSError
|
||||
except Exception as e:
|
||||
raise OSError(e)
|
||||
|
||||
async def recv(self) -> Optional[bytes]:
|
||||
return await self.protocol.recv()
|
||||
|
|
|
|||
Loading…
Reference in a new issue