You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces a few constants to indicate if the
communication over the management socket has failed due to a
connection error or because the data received is not valid.
So far, only `config-get` returns a different value to indicate
invalid data over the socket, but other commands can take advanatge of
this too.
The `pgagroal-cli` main loop has been refactored to distinguish the
new cases, and now it prints the "connection error" message only when
the low level function reports such an error.
All the functions now return a specific value among those defined.
Closeagroal#335
Related to #328 and #334 : if the user specifies a non existing key (not global) in the
config-get
subcommand the connection is dropped:It would be nicer to report an error of some sort, so that the user can understand what happened and not blame the connection.
The text was updated successfully, but these errors were encountered: