Browse Source

Include line number only if relevant

pull/176/head
Oliverpool 9 years ago
parent
commit
1340bbed02
  1. 3
      patacrep/songs/errors.py

3
patacrep/songs/errors.py

@ -24,7 +24,10 @@ class SongSyntaxError(SongError):
self.line = line self.line = line
def __str__(self): def __str__(self):
if self.line is not None:
return "Line {}: {}".format(self.line, self.message) return "Line {}: {}".format(self.line, self.message)
else:
return self.message
# class FileError(SongError): # class FileError(SongError):
# type = "file" # type = "file"

Loading…
Cancel
Save