mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
use debug description for untranslated errors; fix template error
This commit is contained in:
parent
b610ff781f
commit
67942b54f5
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ impl AnkiError {
|
||||||
let details = i18n.trn(FString::NetworkDetails, tr_strs!["details"=>info]);
|
let details = i18n.trn(FString::NetworkDetails, tr_strs!["details"=>info]);
|
||||||
format!("{}\n{}", summary, details)
|
format!("{}\n{}", summary, details)
|
||||||
}
|
}
|
||||||
_ => "".into(),
|
AnkiError::TemplateError { info } => {
|
||||||
|
// already localized
|
||||||
|
info.into()
|
||||||
|
}
|
||||||
|
_ => format!("{:?}", self),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue