how to debug non-zero exit code

64 views
Skip to first unread message

Victor A. Stoichita

unread,
Oct 17, 2016, 3:47:57 AM10/17/16
to mu-discuss
Hi list,

Since yesterday my mu4e signals an error "Update process returned with
non-zero exit code".

Usually I’d look for the cause by running "mbsync -a" then "mu index" in
a terminal. This time, both commands exit with zero status in the
shell (checked it with "echo $?"). Is there a way to get more verbose
debug output from mu4e itself ?

I have mu 0.9.16 and emacs 24.5.1

Cheers,
Victor

Dirk-Jan C. Binnema

unread,
Oct 18, 2016, 3:37:39 PM10/18/16
to mu-di...@googlegroups.com
Perhaps try to replicate what mu4e does as closely as possible, ie;

(start-process-shell-command "test-mu4e" "test-mu4e"
mu4e-get-mail-command)

Then check what's in the test-mu4e buffer.

Kind regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Victor A. Stoichita

unread,
Oct 25, 2016, 11:27:56 AM10/25/16
to mu-di...@googlegroups.com

>
> Perhaps try to replicate what mu4e does as closely as possible, ie;
>
> (start-process-shell-command "test-mu4e" "test-mu4e"
> mu4e-get-mail-command)
>
> Then check what's in the test-mu4e buffer.

Thanks Dirk-Jan!

It’s probably an instance of Murphy’s law applied to asking for help,
but the error vanished "by itself" and now I can’t reproduce it any
longer. I’m positive though it was here for a few days before I asked.
I’ll use your advice to debug if it comes back.

All the best,
Victor
Reply all
Reply to author
Forward
0 new messages