X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-new.c;h=04cb5cac092a9cf08def0af2645f89a5d0394c5f;hb=b824ecc48f1e838ab19e346b0eec17ff02432493;hp=e5037761c8ee7f1b481f8aa342dddf5865874f65;hpb=b645f416059f128ea49991745b648c7ffa045ccc;p=notmuch diff --git a/notmuch-new.c b/notmuch-new.c index e5037761..04cb5cac 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -281,6 +281,10 @@ add_file (notmuch_database_t *notmuch, const char *filename, fprintf (stderr, "Note: Ignoring non-mail file: %s\n", filename); break; /* Fatal issues. Don't process anymore. */ + case NOTMUCH_STATUS_FILE_ERROR: + fprintf (stderr, "Unexpected error with file %s\n", filename); + (void) print_status_database ("add_file", notmuch, status); + goto DONE; case NOTMUCH_STATUS_READ_ONLY_DATABASE: case NOTMUCH_STATUS_XAPIAN_EXCEPTION: case NOTMUCH_STATUS_OUT_OF_MEMORY: