]> git.notmuchmail.org Git - notmuch/blobdiff - database.cc
database.cc: Document better pieces of glib that we're using.
[notmuch] / database.cc
index 528ae1154b48d9b4428c214355700e96f5123564..abae58205f897779871113199c703798d7cbfb8a 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <xapian.h>
 
-#include <glib.h> /* g_strdup_printf, g_free, GHashTable */
+#include <glib.h> /* g_strdup_printf, g_free, GPtrArray, GHashTable */
 
 using namespace std;
 
@@ -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;
     }