Skip to content

Commit f80e606

Browse files
committed
fix: Report all errors to JS in configureSession
1 parent a591cea commit f80e606

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/mrousavy/camera/CameraView.kt

+2
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ class CameraView(context: Context) : FrameLayout(context), LifecycleOwner {
271271
}
272272
} catch (e: CameraError) {
273273
invokeOnError(e)
274+
} catch (e: Throwable) {
275+
invokeOnError(UnknownCameraError(e))
274276
}
275277
}
276278
}

0 commit comments

Comments
 (0)