Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Apr 22, 2015
1 parent 5c318c1 commit 38c9b15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions khal/khalendar/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ def compact(self, day, timeformat='%H:%M'):
else:
return self._compact_datetime(day, timeformat)
except Exception as e:
raise type(e)('Something went wrong while displaying "{}": {}'
.format(self.href, str(e)))
newarg = ('Something went wrong while displaying "{}"'
.format(self.href),)
e.args = newarg + e.args
raise

def _compact_allday(self, day):
if self.recur:
Expand Down

0 comments on commit 38c9b15

Please sign in to comment.