diff options
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-x | lib/mysql-functions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions index 59a649e..b9ef23a 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -63,7 +63,10 @@ mysql_run_query() { done # a present query_file means there was an error if [ -f "${query_stdin}" ]; then - >&2 printf 'I could not complete a mysql query!\n' + >&2 printf 'I (%s) could not complete a mysql query:\n' \ + "$(hostname)" + >&2 sed 's/^/mysql< /' "${query_stdin}" + >&2 sed 's/^/mysql>2 /' "${query_stderr}" files="${query_stdin} ${query_stdout} ${query_stderr}$( sed -n ' s/^.*INFILE "\(\S\+\)".*$/\1/ |