Skip to content

Commit

Permalink
improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenin committed Jun 7, 2024
1 parent 9bd49e6 commit 5b68118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marlowe-object/src/Language/Marlowe/Object/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ instance FromJSON ShelleyAddress where
fromCoreAddress :: Core.Network -> PV2.Address -> ShelleyAddress
fromCoreAddress network addr =
ShelleyAddress $
fromRight (error "fromRight: Left") $
fromRight (error $ "core address deserialization failed: " ++ show network ++ " / " ++ show addr) $
deserialiseFromBech32 (AsAddress AsShelleyAddr) $
serialiseAddressBech32 network addr

Expand Down

0 comments on commit 5b68118

Please sign in to comment.