Modified the DSN file reader to produce more detailed error messages
This commit is contained in:
parent
66ff1a1557
commit
fd2189b925
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue