]> git.cworth.org Git - notmuch/commit
notmuch-config: ENOENT vs generic handling when file open fails.
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 26 Feb 2017 19:12:39 +0000 (21:12 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 28 Feb 2017 12:08:26 +0000 (08:08 -0400)
commit5c0f1bd36790e680f7d3b6082e3606bd3b84a588
tree22c4d8773a8035e6347c77a8e16a265261ac4e30
parent80aeaf7f59e250f034ecc99aa7fcd1e6dd14d9bb
notmuch-config: ENOENT vs generic handling when file open fails.

When opening configuration file fails, ENOENT (file not found) is
handled specially -- in setup missing file is ok (often expected),
and otherwise user can be informed to run notmuch setup.

In any other case the the reason is unknown, so there is no other
option but to print generic error message to stderr.
notmuch-config.c