Ensure that version error message tracks changing requirements

This commit is contained in:
Joe Nelson
2015-10-12 17:10:57 -07:00
parent 3733a84a38
commit 6dbb69a828
+3 -1
View File
@@ -66,7 +66,9 @@ main = do
either hasqlError
(\supported ->
unless supported $
error "Cannot run in this PostgreSQL version, PostgREST needs at least 9.2.0"
error (
"Cannot run in this PostgreSQL version, PostgREST needs at least "
<> show minimumPgVersion)
) supportedOrError
roleOrError <- H.session pool $ do