Reword error message for BinaryFieldError (#1372)

This commit is contained in:
Dan Amoroso
2019-08-08 14:20:06 -05:00
committed by Steve Chávez
parent d5758523f3
commit c80c9ef726
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ instance JSON.ToJSON SimpleError where
toJSON GucHeadersError = JSON.object [
"message" .= ("response.headers guc must be a JSON array composed of objects with a single key and a string value" :: Text)]
toJSON (BinaryFieldError ct) = JSON.object [
"message" .= ((toS (toMime ct) <> " requested but a single column was not selected") :: Text)]
"message" .= ((toS (toMime ct) <> " requested but more than one column was selected") :: Text)]
toJSON ConnectionLostError = JSON.object [
"message" .= ("Database connection lost, retrying the connection." :: Text)]