fix syntax error handling.
This commit is contained in:
parent
64dded4a53
commit
a90eaa4937
@ -281,6 +281,8 @@ system_message(error(signal(SIG,_), _)) -->
|
||||
[ 'UNEXPECTED SIGNAL: ~a' - [SIG] ].
|
||||
system_message(error(syntax_error(G,_,Msg,[],_,0,File), _)) -->
|
||||
[ 'SYNTAX ERROR at "~a", goal ~q: ~a' - [File,G,Msg] ].
|
||||
system_message(error(syntax_error(end_of_clause), stream(Stream, Line, _, _))) -->
|
||||
[ 'SYNTAX ERROR ~a, stream ~w, near line ~d.' - ['Unexpected end of clause',Stream,Line] ].
|
||||
system_message(error(syntax_error(read(_),_,_,Term,Pos,Start,File), Where)) -->
|
||||
{ Term = [_|_] },
|
||||
['~w' - [Where]],
|
||||
|
Reference in New Issue
Block a user