Re: [PATCH] notmuch-config: ENOENT vs generic handling when file open fails.

2017-01-18 Thread Jani Nikula
On Thu, 05 Jan 2017, Tomi Ollila wrote: > 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

[PATCH] notmuch-config: ENOENT vs generic handling when file open fails.

2017-01-04 Thread Tomi Ollila
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