melib/backends.rs: fix notmuch error shown on any missing backend

This commit is contained in:
Manos Pitsidianakis 2022-09-24 22:23:43 +03:00
parent e450ad0f9c
commit c6bdda03cf

View File

@ -245,7 +245,7 @@ impl Backends {
""
},
key,
if cfg!(feature = "notmuch_backend") {
if cfg!(feature = "notmuch_backend") && key == "notmuch" {
NOTMUCH_ERROR_DETAILS
} else {
""