mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Fix --emap output when the error is not in the main file
This commit is contained in:
parent
68c8726a64
commit
8cfcdd090a
1 changed files with 2 additions and 3 deletions
|
@ -71,10 +71,9 @@ class EParse(Exception):
|
|||
def __init__(self, parser, msg):
|
||||
self.errorpos = parser.errorpos
|
||||
self.lno, self.cno, self.fname = GetErrLineCol(parser)
|
||||
if parser.emap:
|
||||
filename = self.fname
|
||||
if parser.emap and filename == '<stdin>':
|
||||
filename = parser.filename
|
||||
else:
|
||||
filename = self.fname
|
||||
|
||||
filename = (filename.decode('utf8', 'replace')
|
||||
.replace(u'\\', u'\\\\')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue