Hi enigmail folks--
When an error arises in enigmail's autocrypt code, it appears to just
throw "error", but that could be in one of several places.
Th patch here makes error reporting a bit more detailed.
It would be good to have this merged into enigmail-2.0-branch. I've
requested that here:
https://gitlab.com/enigmail/enigmail/merge_requests/8
Regards,
--dkg
diff --git a/package/autocrypt.jsm b/package/autocrypt.jsm
index c3c736bb..36283bc8 100644
--- a/package/autocrypt.jsm
+++ b/package/autocrypt.jsm
@@ -70,7 +70,7 @@ var EnigmailAutocrypt = {
fromAddr = EnigmailFuncs.stripEmail(fromAddr).toLowerCase();
}
catch (ex) {
- reject("error");
+ reject("processAutocryptHeader error " + ex);
}
let foundTypes = {};
let paramArr = [];
@@ -300,7 +300,7 @@ var EnigmailAutocrypt = {
},
function onError(error) {
EnigmailLog.DEBUG("autocrypt.jsm: getOpenPGPKeyForEmail: could not
open database\n");
- reject("error");
+ reject("getOpenPGPKeyForEmail1 error " + error);
}
).then(
function _f() {
@@ -333,7 +333,7 @@ var EnigmailAutocrypt = {
).
catch((err) => {
conn.close();
- reject("error");
+ reject("getOpenPGPKeyForEmail2 error " + err);
});
});
},
_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net