psql: Fix exit status when query is canceled
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 22 Oct 2022 07:41:38 +0000 (09:41 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 22 Oct 2022 07:42:52 +0000 (09:42 +0200)
commit2598b76bf2bc78af4c65ffab4736c7b49205fc7a
tree237f27c6dcac15cf36857b9e52ac4096b0465eee
parent6cc66197ff9aa34cc47486d7bf719f376f6f5ff8
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.
src/bin/psql/common.c