Skip to content

Commit

Permalink
Print normal error, not "internal error"
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Oct 7, 2024
1 parent 582cabd commit 6977451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EVM/Format.hs
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ hexByteString :: String -> ByteString -> ByteString
hexByteString msg bs =
case BS16.decodeBase16Untyped bs of
Right x -> x
_ -> internalError $ "invalid hex bytestring for '" ++ msg ++ "'. Bytestring provided: '" ++ show bs ++ "'"
_ -> error $ "Invalid hex bytestring provided for '" ++ msg ++ "'. Bytestring provided: '" ++ show bs ++ "'"

hexText :: Text -> ByteString
hexText t =
Expand Down

0 comments on commit 6977451

Please sign in to comment.