diff options
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 0feed12..8afbd4b 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -15,9 +15,11 @@ import xml.etree.ElementTree as etree def die(msg): newmsg = "" for line in msg.splitlines(): - newmsg += textwrap.fill(line, 80) + '\n' - newmsg = newmsg.rstrip('\n') - sys.exit(newmsg) + newmsg += textwrap.fill(line, 72) + '\n' + msg = "" + for line in newmsg.splitlines(): + msg += 'error: ' + line + '\n' + sys.exit(msg.rstrip('\n')) def die_atnode(msg, node): if verbose: |