on master help sign in
extend unexpected write size error message
commit6be4d65c7e8725d86071938421dcf4dba4f9e122 authorCorey O'Connor <coreyoconnor@gmail.com> dateThu 14 Aug 2014, 17:43 (12 years ago) parent4391f62
1 file changed+2−1
src/Graphics/Vty/Output/TerminfoBased.hs+2−1
src/Graphics/Vty/Output/TerminfoBased.hs+2−1
@@ -140,7 +140,8 @@ reserveTerminal termName outFd = liftIO $ do
140140 let (fptr, _offset, len) = toForeignPtr outBytes
141141 actualLen <- withForeignPtr fptr $ \ptr -> fdWriteBuf outFd ptr (toEnum len)
142142 when (toEnum len /= actualLen) $ fail $ "Graphics.Vty.Output: outputByteBuffer length "
143− ++ "mismatch. Please report a bug to vty project."
143+ ++ "mismatch. " ++ show len ++ " /= " ++ show actualLen
144+ ++ " Please report a bug to vty project."
144145 , contextColorCount
145146 = case supportsNoColors terminfoCaps of
146147 False -> case Terminfo.getCapability ti (Terminfo.tiGetNum "colors" ) of