#302

Better error when there is no `.` in the username or tenant `reference` in the `options` params

Openchasersopened 2y ago

Respond with a good error message when there is no . in the username to split on to pull the tenant from and there are no options params to pull the tenant from either.

Activity

5
chasers2y ago

Can't replicate:

The log for bad password:

ClientHandler: Exchange error: "Wrong password" when method :auth_query
chasers2y ago

And when I try a user which does not exist:

And the log message:

ClientHandler: Authentication auth_secrets error: "There is no user 'joe' in the database. Please create it or change the user in the config"
chasers2y ago

Closing for now...

chasers2y ago

Updated and re-opened

abc31y ago

@hauleth I believe the error messages have already improved

$ psql postgresql://postgres2.dev_tenant:postgres1@localhost:6543/postgres
psql: error: connection to server at "localhost" (127.0.0.1), port 6543 failed: FATAL:  
Authentication error, reason: "There is no user 'postgres2' in the database. Please create it or change the user in the config"