psql: Fix exit status when query is canceled

Peter Eisentraut <peter@eisentraut.org>

Commit: 2598b76bf2bc78af4c65ffab4736c7b49205fc7a
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-10-22T07:42:52Z
Releases: 16.0
psql: Fix exit status when query is canceled

Because of a small thinko in 7844c9918a43b494adde3575891d217a37062378,
psql -c would exit successfully when a query is canceled.  Fix this so
that it exits with a nonzero status, just like for all other errors.

Files

PathChange+/−
src/bin/psql/common.c modified +1 −1