Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show keyFromValues error #1268

Merged
merged 3 commits into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions persistent/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog for persistent

## 2.13.0.1

* [#1268](https://github.com/yesodweb/persistent/pull/1268)
* Show `keyFromValues` error
3kyro marked this conversation as resolved.
Show resolved Hide resolved

## 2.13.0.0

* [#1244](https://github.com/yesodweb/persistent/pull/1244)
Expand Down
3 changes: 2 additions & 1 deletion persistent/Database/Persist/Sql/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ parseEntityValues t vals =
case fromPersistValues xs of
Left e -> Left e
Right xs' -> case keyFromValues keyvals of
Left _ -> error "fromPersistValuesComposite': keyFromValues failed"
Left err -> error $ "fromPersistValuesComposite': keyFromValues failed with error: "
<> T.unpack err
Right key -> Right (Entity key xs')


Expand Down
2 changes: 1 addition & 1 deletion persistent/persistent.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: persistent
version: 2.13.0.0
version: 2.13.0.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
Expand Down