Skip to content

Commit

Permalink
Minor: improve 'unexpected header' error message slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
rrnewton committed May 30, 2016
1 parent 913903d commit 876b6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Criterion/IO.hs
Expand Up @@ -55,7 +55,7 @@ hGetRecords handle = do
bs <- L.hGet handle (fromIntegral (L.length header))
if bs == header
then Right `fmap` readAll handle
else return $ Left "unexpected header"
else return $ Left $ "unexpected header, expected criterion version: "++show (versionBranch version)

-- | Write records to the given 'Handle'.
hPutRecords :: Binary a => Handle -> [a] -> IO ()
Expand Down

0 comments on commit 876b6c5

Please sign in to comment.