Revision 12730
Added by Aaron Marcuse-Kubitza almost 11 years ago
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; then |
|
293 |
log_hint '[7m to see error details, prepend `vb=2` to the command [0m' |
|
294 |
fi; rethrow; } |
|
292 |
|| die_error_hidden |
|
295 | 293 |
# --output is for query *results*, not echoed statements |
296 | 294 |
} |
297 | 295 |
|
Also available in: Unified diff
lib/sh/db.sh: psql(): "to see error details" msg: use new die_error_hidden()