fix: Report all errors to JS in configureSession

This commit is contained in:
Marc Rousavy 2021-06-29 10:14:33 +02:00
parent a591cea809
commit f80e606c6d

View File

@ -271,6 +271,8 @@ class CameraView(context: Context) : FrameLayout(context), LifecycleOwner {
}
} catch (e: CameraError) {
invokeOnError(e)
} catch (e: Throwable) {
invokeOnError(UnknownCameraError(e))
}
}
}