From: Wilfried Göesgens Date: Sun, 22 Feb 2009 12:26:55 +0000 (+0000) Subject: * bail on no templates found X-Git-Tag: v7.86~1416 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=7a1a2679feb8e27a4106eec3f4f2d8b5f7b0fdb2;hp=f968010977abb7638d03ca87cfa75af2b273fbfd;p=citadel.git * bail on no templates found * make errormessage _BIG_ so one can see it... --- 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);