]> git.eshelyaron.com Git - emacs.git/commit
Handle non-zero exit status from psql more gracefully
authorSimen Heggestøyl <simenheg@gmail.com>
Wed, 9 Aug 2017 13:34:34 +0000 (15:34 +0200)
committerSimen Heggestøyl <simenheg@gmail.com>
Tue, 5 Sep 2017 18:31:21 +0000 (20:31 +0200)
commitfca62384537e1a32e867f4d3181e0b2b79396383
treec6586fb7df23770b3f2f7763a9d3337c05653285
parent25a49f64963d1c2a392ebaa66676042b55e0e3c1
Handle non-zero exit status from psql more gracefully

* lisp/progmodes/sql.el (sql-postgres-list-databases): Handle non-zero
exit statuses from `psql -ltX' more gracefully by returning nil.

* test/lisp/progmodes/sql-tests.el
(sql-tests-postgres-list-databases-error): New test.
lisp/progmodes/sql.el
test/lisp/progmodes/sql-tests.el