More diagnostic
This commit is contained in:
parent
abed530d1f
commit
7fdeeda0a6
@ -11,7 +11,7 @@ instance PersistField EvaluationScheme where
|
||||
|
||||
fromPersistValue (PersistText t) = case readMay t of
|
||||
Just val -> Right val
|
||||
Nothing -> Left "Unexpected value"
|
||||
Nothing -> Left $ "Unexpected value '" ++ t ++ "'"
|
||||
fromPersistValue _ = Left "Unexpected value"
|
||||
|
||||
instance PersistFieldSql EvaluationScheme where
|
||||
|
Loading…
Reference in New Issue
Block a user