Modified the DSN file reader to produce more detailed error messages

This commit is contained in:
Andras Fuchs 2020-03-01 10:51:22 +01:00
parent 66ff1a1557
commit fd2189b925
2 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class DsnFile
}
if (!keyword_ok)
{
FRLogger.warn("DsnFile.read: specctra dsn file format expected");
FRLogger.warn("DsnFile.read: the input file is not in a Specctra DSN file format. It must be a text file starting with the '(pcb' character array.");
return ReadResult.ERROR;
}
}

View File

@ -1403,8 +1403,7 @@ class SpecctraFileScanner implements Scanner {
}
case 230: break;
case 2:
{ throw new Error("Illegal character <"+
yytext()+">");
{ throw new Error("Illegal character '"+yytext()+"' was found at position " + zzCurrentPos);
}
case 231: break;
case 95: