mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-12-01 14:36:27 +03:00
extend unexpected write size error message
This commit is contained in:
parent
4391f6212b
commit
6be4d65c7e
@ -140,7 +140,8 @@ reserveTerminal termName outFd = liftIO $ do
|
||||
let (fptr, _offset, len) = toForeignPtr outBytes
|
||||
actualLen <- withForeignPtr fptr $ \ptr -> fdWriteBuf outFd ptr (toEnum len)
|
||||
when (toEnum len /= actualLen) $ fail $ "Graphics.Vty.Output: outputByteBuffer length "
|
||||
++ "mismatch. Please report a bug to vty project."
|
||||
++ "mismatch. " ++ show len ++ " /= " ++ show actualLen
|
||||
++ " Please report a bug to vty project."
|
||||
, contextColorCount
|
||||
= case supportsNoColors terminfoCaps of
|
||||
False -> case Terminfo.getCapability ti (Terminfo.tiGetNum "colors" ) of
|
||||
|
Loading…
Reference in New Issue
Block a user