From 67942b54f5610cdc4cf973bb6082dba57f8e7353 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 27 Feb 2020 11:07:18 +1000 Subject: [PATCH] use debug description for untranslated errors; fix template error --- rslib/src/err.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rslib/src/err.rs b/rslib/src/err.rs index 9714f5925..59112aef7 100644 --- a/rslib/src/err.rs +++ b/rslib/src/err.rs @@ -77,7 +77,11 @@ impl AnkiError { let details = i18n.trn(FString::NetworkDetails, tr_strs!["details"=>info]); format!("{}\n{}", summary, details) } - _ => "".into(), + AnkiError::TemplateError { info } => { + // already localized + info.into() + } + _ => format!("{:?}", self), } } }