gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] gtp command `loadsgf' exits on parse error


From: Thien-Thi Nguyen
Subject: [gnugo-devel] gtp command `loadsgf' exits on parse error
Date: Thu, 04 Nov 2004 16:03:00 +0100

for gnugo 3.6-pre3, i did:

$ echo bad > /tmp/bad
$ gnugo --quiet --mode gtp
loadsgf /tmp/bad
Empty file?
$

i.e., gnugo exited due to sgf misparse.  apparently,
in sgf/sgfnode.c (gnugo 3.6-pre3), there is:

static void
parse_error(const char *msg, int arg)
{
  fprintf(stderr, msg, arg);
  fprintf(stderr, "\n");
  exit(EXIT_FAILURE);
}

that seems a bit harsh, and violates the gtp error-reporting
convention of displaying "?" and continuing.  is someone looking
into this?

thi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]