Skip to content

Commit

Permalink
commit to old error msg schema
Browse files Browse the repository at this point in the history
  • Loading branch information
emilypi committed Apr 24, 2023
1 parent a141d19 commit a0bf93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/ByteString/Base64/Internal/W16/Loop.hs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ decodeLoop !dtable !sptr !dptr !end !dfp = go dptr sptr
where
err :: Ptr Word8 -> IO (Either Text ByteString)
err p = return . Left . T.pack
$ "invalid character at offset: "
$ "invalid base64 encoding near offset: "
++ show (p `minusPtr` sptr)

padErr :: Ptr Word8 -> IO (Either Text ByteString)
padErr p = return . Left . T.pack
$ "invalid padding at offset: "
$ "invalid padding near offset: "
++ show (p `minusPtr` sptr)

canonErr :: Ptr Word8 -> IO (Either Text ByteString)
Expand Down

0 comments on commit a0bf93d

Please sign in to comment.