1.1 --- a/src/game.c Tue Aug 28 14:16:30 2018 +0200 1.2 +++ b/src/game.c Tue Aug 28 14:37:09 2018 +0200 1.3 @@ -498,9 +498,11 @@ 1.4 FILE *pgnfile = fopen(settings->continuepgn, "r"); 1.5 if (pgnfile) { 1.6 int result = read_pgn(pgnfile, &gamestate, &(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.14 } 1.15 if (!is_game_running(&gamestate)) {