Improved output

client/mysqltest.c:
  Don't print "At line: 0"
This commit is contained in:
unknown 2005-09-20 12:13:17 +02:00
parent 56f457b67f
commit 6bec4bc605

View file

@ -577,7 +577,8 @@ static void die(const char *fmt, ...)
if (cur_file && cur_file != file_stack)
fprintf(stderr, "In included file \"%s\": ",
cur_file->file_name);
fprintf(stderr, "At line %u: ", start_lineno);
if (start_lineno != 0)
fprintf(stderr, "At line %u: ", start_lineno);
vfprintf(stderr, fmt, args);
fprintf(stderr, "\n");
fflush(stderr);