Project

General

Profile

« Previous | Next » 

Revision 12724

lib/sh/db.sh: psql(): on error, display message describing how to see error details (prepend `vb=2` to the command)

View differences:

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

  

Also available in: Unified diff