Exit with failure codes if configs are bad (#146)

* Exit with failure codes if configs are bad

* fmt
This commit is contained in:
Mostafa Abdelraouf
2022-08-25 20:56:18 -05:00
committed by GitHub
parent 9d84d6f131
commit 3bc4f9351c
4 changed files with 17 additions and 5 deletions

View File

@@ -3,6 +3,9 @@
set -e
set -o xtrace
# non-zero exit code if we provide bad configs
(! ./target/debug/pgcat "fake_configs" 2>/dev/null)
# Start PgCat with a particular log level
# for inspection.
function start_pgcat() {