From 7a1a2679feb8e27a4106eec3f4f2d8b5f7b0fdb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 22 Feb 2009 12:26:55 +0000 Subject: [PATCH] * bail on no templates found * make errormessage _BIG_ so one can see it... --- webcit/webserver.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webcit/webserver.c b/webcit/webserver.c index 5aaf5992f..c99906241 100644 --- a/webcit/webserver.c +++ b/webcit/webserver.c @@ -853,9 +853,17 @@ int main(int argc, char **argv) if (DumpTemplateI18NStrings) { FILE *fd; StrBufAppendBufPlain(I18nDump, HKEY("}\n"), 0); + if (StrLength(I18nDump) < 50) { + lprintf(1, "********************************************************************************\n"); + lprintf(1, "* No strings found in templates! are you shure they're there? *\n"); + lprintf(1, "********************************************************************************\n"); + return -1; + } fd = fopen(I18nDumpFile, "w"); if (fd == NULL) { - lprintf(1, "unable to open I18N dumpfile [%s]\n", I18nDumpFile); + lprintf(1, "********************************************************************************\n"); + lprintf(1, "* unable to open I18N dumpfile [%s] *\n", I18nDumpFile); + lprintf(1, "********************************************************************************\n"); return -1; } fwrite(ChrPtr(I18nDump), 1, StrLength(I18nDump), fd); -- 2.30.2