* bail on no templates found
authorWilfried Göesgens <willi@citadel.org>
Sun, 22 Feb 2009 12:26:55 +0000 (12:26 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 22 Feb 2009 12:26:55 +0000 (12:26 +0000)
* make errormessage _BIG_ so one can see it...

webcit/webserver.c

index 5aaf5992fbe9675a7b52f76de2b24b7cab27b0dd..c999062414fef13ee3bf6cab854125b6dc441f8d 100644 (file)
@@ -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);