Project

General

Profile

« Previous | Next » 

Revision 12726

bugfix: lib/sh/db.sh: psql(): "to see error details" msg: also don't print it for benign errors ($benign_error)

View differences:

db.sh
289 289
		cat
290 290
	)|cmd_log_fd=${verbose_:+1} pg_cmd --file /dev/fd/40 \
291 291
${verbose_:+--output /dev/fd/41 }--set ON_ERROR_STOP=1 --quiet "$@" \
292
|| { save_e; if test "$(verbosity_int)" -lt 2; then
292
|| { save_e; if test "$(verbosity_int)" -lt 2 -a -z "$benign_error"; then
293 293
die ' to see error details, prepend `vb=2` to the command '
294 294
fi; rethrow; }
295 295
		# --output is for query *results*, not echoed statements

Also available in: Unified diff