]> mj.ucw.cz Git - eval.git/blobdiff - judge/token.c
Added a description of the meta-files
[eval.git] / judge / token.c
index 4606395483935493c2d8715099174c389254b820..85f5069420e96755f2f98e7299f3fa4469055f12 100644 (file)
@@ -34,9 +34,9 @@ void tok_err(struct tokenizer *t, char *msg, ...)
 {
   va_list args;
   va_start(args, msg);
 {
   va_list args;
   va_start(args, msg);
-  printf("%s:%d: ", t->stream->name, t->line);
-  vprintf(msg, args);
-  putchar('\n');
+  fprintf(stderr, "Error at %s line %d:\n", t->stream->name, t->line);
+  vfprintf(stderr, msg, args);
+  fputc('\n', stderr);
   va_end(args);
   exit(1);
 }
   va_end(args);
   exit(1);
 }