X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/88ceda407be72bd6cae67c480ceaa0a77f0f0b55..95c76d7c0c76081ab4f389aa1bb7667ee08c99eb:/gtk.c diff --git a/gtk.c b/gtk.c index 27c3ea5..4ef0839 100644 --- a/gtk.c +++ b/gtk.c @@ -1954,6 +1954,11 @@ int main(int argc, char **argv) } } + if (*errbuf) { + fputs(errbuf, stderr); + return 1; + } + /* * Special standalone mode for generating puzzle IDs on the * command line. Useful for generating puzzles to be printed @@ -1981,11 +1986,6 @@ int main(int argc, char **argv) char *id; document *doc = NULL; - if (*errbuf) { - fputs(errbuf, stderr); - return 1; - } - n = ngenerate; me = midend_new(NULL, &thegame, NULL, NULL);