[neomutt-users] display of errors
Sven Guckes
neomutt-lists at guckes.net
Fri Mar 12 02:21:49 CET 2021
how about a slightly different output of errors?
in particular, showing error numbers and erroneous lines.
this is what i just got:
Unknown Mailbox: /home/user/guckes/Mail.IN/KALENDERBLATT
Error in /home/user/guckes/.mutt/NEW, line 4637:
Error in /home/user/guckes/.mutt/personal, line 232: source: file /home/user/guckes/.mutt/NEW could not be sourced
Error in /home/user/guckes/.mutt/muttrc.forall, line 1435: source: file /home/user/guckes/.mutt/personal could not be sourced
Error in /home/user/guckes/.muttrc, line 87: source: file /home/user/guckes/.mutt/muttrc.forall could not be sourced
Error in /home/user/guckes/.neomuttrc, line 27: source: file /home/user/guckes/.muttrc could not be sourced
source: errors in /home/user/guckes/.neomuttrc
it would be easier to read the cascade if the line numbers came first:
Unknown Mailbox: /home/user/guckes/Mail.IN/KALENDERBLATT
Error in line 4637: /home/user/guckes/.mutt/NEW
Error in line 232: source: file /home/user/guckes/.mutt/NEW could not be sourced /home/user/guckes/.mutt/personal
Error in line 1435: source: file /home/user/guckes/.mutt/personal could not be sourced /home/user/guckes/.mutt/muttrc.forall
Error in line 87: source: file /home/user/guckes/.mutt/muttrc.forall could not be sourced /home/user/guckes/.muttrc
Error in line 27: source: file /home/user/guckes/.muttrc could not be sourced /home/user/guckes/.neomuttrc
source: errors in /home/user/guckes/.neomuttrc
of course, "Error in (line)" and "file" might be redundant.
and the home path might be abbreviated to '~':
and maybe add an error number up front (for the lookups):
Unknown Mailbox: ~/Mail.IN/KALENDERBLATT
E4711 4637: ~/.mutt/NEW
E0815 232: source: ~/.mutt/NEW <- ~/.mutt/personal
E0815 1435: source: ~/.mutt/personal <- ~/.mutt/muttrc.forall
E0815 87: source: ~/.mutt/muttrc.forall <- ~/.muttrc
E0815 27: source: ~/.muttrc <- ~/.neomuttrc
E0815 source: errors in ~/.neomuttrc
is there an option to request the output of those lines as well?
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1495 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20210312/f363079e/attachment.sig>
More information about the neomutt-users
mailing list