append actual raised exception in the error.
This commit is contained in:
parent
3bdad41e21
commit
eba62f6f74
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ handshake ctx = do
|
|||
handleException f = catch (f >> return True) (\e -> handler e >> return False)
|
||||
handler e = case fromException e of
|
||||
Just err -> sendPacket ctx (errorToAlert err)
|
||||
Nothing -> sendPacket ctx (errorToAlert $ Error_Misc "")
|
||||
Nothing -> sendPacket ctx (errorToAlert $ Error_Misc $ show e)
|
||||
|
||||
-- | sendData sends a bunch of data.
|
||||
-- It will automatically chunk data to acceptable packet size
|
||||
|
|
Loading…
Reference in a new issue