summaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-07-22 11:43:10 +0200
committerWerner Koch <wk@gnupg.org>2009-07-22 11:43:10 +0200
commit5d310a8de75e513ac0d44b2960966a631dae9670 (patch)
treeea684db1398d32be5f22613b259770eb861571aa /g10/tdbio.c
parentFix i18n bug. (diff)
downloadgnupg2-5d310a8de75e513ac0d44b2960966a631dae9670.tar.xz
gnupg2-5d310a8de75e513ac0d44b2960966a631dae9670.zip
Print verbose instructions in case of a corrupted trustdb.
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 231f451e7..c0dd5abf4 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -1499,12 +1499,11 @@ tdbio_search_trust_bypk (PKT_public_key *pk, TRUSTREC *rec)
}
-
void
tdbio_invalid(void)
{
- log_error(_(
- "the trustdb is corrupted; please run \"gpg --fix-trustdb\".\n") );
- g10_exit(2);
+ log_error (_("Error: The trustdb is corrupted.\n"));
+ how_to_fix_the_trustdb ();
+ g10_exit (2);
}