mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
notmuch_database_open: Fix error message for file-not-found.
I was incorrectly using the return value of stat (-1) instead of errno (ENOENT) to try to construct the error message here. Also, while we're here, reword the error message to not have "stat" in it, which in spite of what a Unix programmer will tell you, is not actually a word.
This commit is contained in:
parent
67a0ee2ebb
commit
968feafbad
1 changed files with 2 additions and 2 deletions
|
@ -450,8 +450,8 @@ notmuch_database_open (const char *path)
|
|||
|
||||
err = stat (notmuch_path, &st);
|
||||
if (err) {
|
||||
fprintf (stderr, "Error: Cannot stat %s: %s\n",
|
||||
notmuch_path, strerror (err));
|
||||
fprintf (stderr, "Error opening database at %s: %s\n",
|
||||
notmuch_path, strerror (errno));
|
||||
goto DONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue