Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 15:34:05 +0200
committerErich Eckner <git@eckner.net>2018-04-17 15:34:05 +0200
commit40d8a3a26d3160bc327b37d0ea180806bf267277 (patch)
tree1b30557c8c4670caddfcf5ef1f3d66d2cb629086 /lib/mysql-functions
parent003203b0c3e6024c16d90c9ecb9eee97cdc1449c (diff)
lib/mysql-functions: copy stdout and stderr of failed queries into webserver directory, too
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 65c186f..e8d8ab9 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -62,7 +62,11 @@ mysql_run_query() {
printf '\001ACTION failed to execute a mysql query - can you have a look at "%s"?.\001\n' \
"${query_stdin##*/}" \
| irc_say
- cp "${query_stdin}" "${webserver_directory}/mysql-queries/"
+ cp \
+ "${query_stdin}" \
+ "${query_stdout}" \
+ "${query_stderr}" \
+ "${webserver_directory}/mysql-queries/"
fi
echo 'A mysql query failed.' > \
"${work_dir}/build-master-sanity"