Skip to content

Commit 2ec3ba7

Browse files
jeyj0mpscholten
andauthored
better error message for sqlQueryScalarOrNothing
Co-authored-by: Marc Scholten <[email protected]>
1 parent c8e86e0 commit 2ec3ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IHP/ModelSupport.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ sqlQueryScalarOrNothing theQuery theParameters = do
444444
pure case result of
445445
[] -> Nothing
446446
[PG.Only result] -> Just result
447-
_ -> error "sqlQueryScalar: Expected a scalar result value or nothing"
447+
_ -> error "sqlQueryScalarOrNothing: Expected a scalar result value or an empty result set"
448448
{-# INLINABLE sqlQueryScalarOrNothing #-}
449449

450450
-- | Executes the given block with a database transaction

0 commit comments

Comments
 (0)