Commit 1f06d432 authored by Pavel Mashliakovskiy's avatar Pavel Mashliakovskiy 🤹🏻

`SignatureVerificationResult` view: in case signature is invalid and library...

`SignatureVerificationResult` view: in case signature is invalid and library provide some reason this reason will be shown in `()`
parent f8bf4b9e
......@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
- `SignatureVerificationResult` view: in case signature is invalid and library provide some reason this reason will be shown in `()`
For example: `Signature invalid (Неверный сертификат OSCP сервера)`
### Changed
......
......@@ -167,7 +167,13 @@ export default {
const r = this.verificationResults[vIdx]
if (!r.valid) {
let m = this.VRi18n.valid.no
if (r.errorCode) m = r.errorMessage + ` (${r.errorCode})`
if (r.errorMessage && r.errorCode) {
m = `${m} (#${r.errorCode}: ${r.errorMessage})`
} else if (r.errorMessage) {
m = `${m} (${r.errorMessage})`
} else if (r.errorCode) {
m = `${m} (#${r.errorCode})`
}
return m
}
let s = this.VRi18n.valid.yes; s += isHTML ? '<br>' : '; '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment