Fix InvocationTargetException

I'm dumb
This commit is contained in:
Mygod
2018-08-14 22:06:59 +08:00
committed by GitHub
parent da7f08fd71
commit eeff67f47c

View File

@@ -124,7 +124,7 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
TetheringManager.TETHER_ERROR_PROVISION_FAILED -> "TETHER_ERROR_PROVISION_FAILED"
else -> app.getString(R.string.failure_reason_unknown, error)
}
} catch (e: SecurityException) {
} catch (e: InvocationTargetException) {
Crashlytics.logException(e)
e.localizedMessage
}