Skip to content

Commit

Permalink
Correctly access error token in signature parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Zaddach committed Dec 7, 2017
1 parent 8bf2dd4 commit 8d170f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/casc/sigalyzer/sig_yacc.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def p_skipbyte(p):

def p_error(p):
if p:
raise SignatureParseException("Syntax error in input at input token '%s' at position %d" % (p[1], p.lexpos(1)))
raise SignatureParseException("Syntax error in input at input token '%s' at position %d" % (p.value, p.lexpos))
else:
raise SignatureParseException("Unexpected end of file")

Expand Down

0 comments on commit 8d170f2

Please sign in to comment.