summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-17 17:48:45 +0200
committerGitHub <noreply@github.com>2016-07-17 17:48:45 +0200
commitdd410083afff85ef621e0dffc8fd06e376f686f1 (patch)
tree3e2d8d99f18d6a9b56f7fe4364fa366e17d39dd2
parent6c227e6f84dc5483a941198343ac664bc32d8fb1 (diff)
parentd263025f39e71698f072d2a9a101a0991949d95d (diff)
downloadhercules-dd410083afff85ef621e0dffc8fd06e376f686f1.tar.gz
hercules-dd410083afff85ef621e0dffc8fd06e376f686f1.tar.bz2
hercules-dd410083afff85ef621e0dffc8fd06e376f686f1.tar.xz
hercules-dd410083afff85ef621e0dffc8fd06e376f686f1.zip
Merge pull request #1369 from 4144/buildbot
If build bot enabled, show error message in ShowConfigWarning.
-rw-r--r--src/common/showmsg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/showmsg.c b/src/common/showmsg.c
index 8ed8efc1d..d8864684d 100644
--- a/src/common/showmsg.c
+++ b/src/common/showmsg.c
@@ -804,7 +804,11 @@ void showmsg_showConfigWarning(struct config_setting_t *config, const char *stri
StrBuf->AppendStr(&buf, string);
StrBuf->Printf(&buf, " (%s:%u)\n", config_setting_source_file(config), config_setting_source_line(config));
va_start(ap, string);
+#ifdef BUILDBOT
+ vShowMessage_(MSG_ERROR, StrBuf->Value(&buf), ap);
+#else // BUILDBOT
vShowMessage_(MSG_WARNING, StrBuf->Value(&buf), ap);
+#endif // BUILDBOT
va_end(ap);
StrBuf->Destroy(&buf);
}