summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-17 18:16:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-17 18:39:39 +0300
commitd263025f39e71698f072d2a9a101a0991949d95d (patch)
tree3e2d8d99f18d6a9b56f7fe4364fa366e17d39dd2
parent6c227e6f84dc5483a941198343ac664bc32d8fb1 (diff)
downloadhercules-d263025f39e71698f072d2a9a101a0991949d95d.tar.gz
hercules-d263025f39e71698f072d2a9a101a0991949d95d.tar.bz2
hercules-d263025f39e71698f072d2a9a101a0991949d95d.tar.xz
hercules-d263025f39e71698f072d2a9a101a0991949d95d.zip
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);
}