cli: Be more helpful when .notmuch-config does not exist
authorAustin Clements <amdragon@mit.edu>
Wed, 3 Sep 2014 15:28:34 +0000 (11:28 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 7 Sep 2014 18:01:01 +0000 (20:01 +0200)
commit3d39d346d793b9bea0c23ae2c16600feab11ee19
tree3c80dc78e3451f7e3f14664a776e10b3e03ed756
parentef5e66ae8e84fce75154417dd51be72f78ec1f45
cli: Be more helpful when .notmuch-config does not exist

Previously, if the user ran any subcommand that required a
configuration (e.g., notmuch new) but didn't have a configuration,
notmuch would give the rather un-friendly and un-actionable message

  Error reading configuration file .notmuch-config: No such file or directory

Since this condition is expected for new users, this patch adds
specific handling for the file-not-found case to give a message that
is friendly and actionable.
notmuch-config.c
test/T040-setup.sh