Generic description to prevent accidental leakage of sensitive data

I get this error when trying to return data from Postgres database. Generic description to prevent accidental leakage of sensitive data. I would like to turn Error Detail on in the connection string but can't figure out how to turn it on. I am trying to create Vapor APIs

You need to catch the error and log if yourself, so wrap the offending block in a do/catch.

Note that printing out the connection string is normally a bad idea

I am also facing the error when trying to return data.

You probably have a connection error somewhere. Catch the error and print it out and you should see the underlying problem