Mercurial > lcfOS
diff python/ppci/errors.py @ 289:bd2593de3ff8
Semifix burn2
author | Windel Bouwman |
---|---|
date | Thu, 21 Nov 2013 15:46:50 +0100 |
parents | a747a45dcd78 |
children | 6aa721e7b10b |
line wrap: on
line diff
--- a/python/ppci/errors.py Thu Nov 21 14:26:13 2013 +0100 +++ b/python/ppci/errors.py Thu Nov 21 15:46:50 2013 +0100 @@ -11,7 +11,8 @@ self.msg = msg self.loc = loc if loc: - assert type(loc) is SourceLocation, '{0} must be SourceLocation'.format(type(loc)) + assert type(loc) is SourceLocation, \ + '{0} must be SourceLocation'.format(type(loc)) self.row = loc.row self.col = loc.col else: @@ -19,9 +20,9 @@ def __repr__(self): if self.row: - return 'Compilererror: "{0}" at row {1}'.format(self.msg, self.row) + return '"{0}" at row {1}'.format(self.msg, self.row) else: - return 'Compilererror: "{0}"'.format(self.msg) + return '"{0}"'.format(self.msg) def printError(source, e): def printLine(row, txt):