Project

General

Profile

« Previous | Next » 

Revision 12728

lib/sh/db.sh: psql(): "to see error details" msg: use new log_hint()

View differences:

trunk/lib/sh/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 -a -z "$benign_error"; then
293
die ' to see error details, prepend `vb=2` to the command '
292
|| { save_e; if test "$(verbosity_int)" -lt 2; then
293
log_hint ' to see error details, prepend `vb=2` to the command '
294 294
fi; rethrow; }
295 295
		# --output is for query *results*, not echoed statements
296 296
}

Also available in: Unified diff