On Wed, Sep 06, 2023 at 12:48:15PM -0300, David Bremner wrote: > Eric Blake <eblake@redhat.com> writes: > > > > > I'm not sure if this is the best approach (as this is my first ever > > patch to notmuch), but it's better than nothing. > > Unfortunately we can't just print from there because it is in a shared > library (whose clients might not appreciate output). Something _almost_ > equivalent can be done with _notmuch_database_log, but that still > requires the caller to read those logs with > notmuch_database_status_string. I'm out of time to spend further on this bug today; if you would like to take the ideas in my patch and rework it into something usable, be my guest. Otherwise, I might be able to return to this bug later in the week to see if I can figure out how to grab the database_log at the right point when status is NOTMUCH_STATUS_FILE_ERROR is returned (open.cc:notmuch_database_load_config DONE label looks like it should be able to grab from the database log if status_string is present). -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org