Skip to content

Commit

Permalink
Show keyFromValues error (#1268)
Browse files Browse the repository at this point in the history
* Show `keyFromValues` error

* Update changelog

* Incorporate review suggestions
  • Loading branch information
3kyro committed May 11, 2021
1 parent 9a6303b commit 7e85a7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
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

## 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

0 comments on commit 7e85a7c

Please sign in to comment.