Skip to content

Commit

Permalink
Merge pull request #164 from JBetz/improve-row-error-message
Browse files Browse the repository at this point in the history
Make row and column number more explicit in row errors
  • Loading branch information
nikita-volkov authored Jul 15, 2024
2 parents a2993a4 + 5537c6e commit 5a6c797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Hasql/Errors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ instance Exception SessionError where
<> maybe "" (\h -> "\n Hint: " <> BC.unpack h) hint
UnexpectedResult message -> "Unexpected result: " <> show message
RowError row column rowError ->
"Row error: " <> show row <> ":" <> show column <> " " <> show rowError
"Error in row " <> show row <> ", column " <> show column <> ": " <> show rowError
UnexpectedAmountOfRows amount ->
"Unexpected amount of rows: " <> show amount

Expand Down

0 comments on commit 5a6c797

Please sign in to comment.