File 0005-list-hash-in-error.patch of Package muchsync

From c39023d1ebe4c120b9e8571c27ec1263910c45f8 Mon Sep 17 00:00:00 2001
From: David Mazieres <dm@uun.org>
Date: Tue, 11 Dec 2018 08:44:16 -0800
Subject: [PATCH 5/5] list hash in error

---
 protocol.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocol.cc b/protocol.cc
index 40371fc..f67df79 100644
--- a/protocol.cc
+++ b/protocol.cc
@@ -738,7 +738,7 @@ muchsync_server(sqlite3 *db, notmuch_db &nm)
       if (send_content(hashdb, tagdb, hash, "220-", cout))
 	cout << "220 " << hash << '\n';
       else if (hashdb.ok())
-	cout << "420 cannot open file\n";
+	cout << "420 cannot open file with hash " << hash << "\n";
       else
 	cout << "520 unknown hash\n";
     }
-- 
2.20.1
openSUSE Build Service is sponsored by