1.1 --- a/src/server.c Tue Aug 28 14:16:30 2018 +0200 1.2 +++ b/src/server.c Tue Aug 28 14:37:09 2018 +0200 1.3 @@ -74,9 +74,11 @@ 1.4 if (pgnfile) { 1.5 int result = read_pgn(pgnfile, &continuegame, 1.6 &(settings->gameinfo)); 1.7 + long position = ftell(pgnfile); 1.8 fclose(pgnfile); 1.9 if (result) { 1.10 - addstr("Invalid PGN file content.\n"); 1.11 + printw("Invalid PGN file content at position %ld:\n%s\n", 1.12 + position, pgn_error_str(result)); 1.13 return 1; 1.14 } 1.15 if (!is_game_running(&continuegame)) {