Make a specific crash more clear to improve debuggability.

This commit is contained in:
Greyson Parrelli 2024-02-23 15:19:18 -05:00
parent 43caaf7efc
commit dc32e51ac2

View file

@ -98,10 +98,11 @@ class PnpInitializeDevicesJob private constructor(parameters: Parameters) : Base
try {
Log.i(TAG, "Initializing PNI for linked devices")
initializeDevices(e164)
val result: VerifyResponseWithoutKbs = initializeDevices(e164)
.map(::VerifyResponseWithoutKbs)
.safeBlockingGet()
.resultOrThrow
result.error?.let { throw it }
} catch (e: InterruptedException) {
throw IOException("Retry", e)
} catch (t: Throwable) {