Skip to content
Snippets Groups Projects
Unverified Commit 69217753 authored by BMItter's avatar BMItter Committed by GitHub
Browse files

Exception forwarding / error message 403 (EXPOSUREAPP-8022 ) (#3524)


* Forward TestCertificateServerException

* satisfy noOne but lint

Co-authored-by: default avatarChilja Gossow <49635654+chiljamgossow@users.noreply.github.com>
parent 09edb8f0
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,10 @@ class TestCertificateServer @Inject constructor( ...@@ -68,7 +68,10 @@ class TestCertificateServer @Inject constructor(
} }
} catch (e: Exception) { } catch (e: Exception) {
Timber.tag(TAG).w(e, "registerPublicKeyForTest failed") Timber.tag(TAG).w(e, "registerPublicKeyForTest failed")
throw TestCertificateServerException(PKR_FAILED) throw when (e) {
is TestCertificateServerException -> e
else -> TestCertificateServerException(PKR_FAILED)
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment