summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-29 14:23:21 +0200
committerErich Eckner <git@eckner.net>2018-03-29 14:23:21 +0200
commitb5ba44771925215883afad5ad7529763b8ec1037 (patch)
tree29497cdef52e24853ebbbef841035913a575d7ad /lib
parente9567332f84a432278ad734f1b68615e57772df9 (diff)
downloadbuilder-b5ba44771925215883afad5ad7529763b8ec1037.tar.xz
lib/mysql-functions: give correct error on failed mysql query
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 48b00a2..e2a46ef 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -60,7 +60,7 @@ mysql_run_query() {
>&2 printf 'I could not complete a mysql query!\n'
if [ ! -s "${work_dir}/build-master-sanity" ]; then
printf '\001ACTION failed to execute a mysql query - can you have a look at "%s"?.\001\n' \
- "${query_file##*/}" \
+ "${query_stdin##*/}" \
| irc_say
fi
echo 'A mysql query failed.' > \