Update ERRORS.md

This commit is contained in:
Marc Rousavy 2021-02-24 21:44:06 +01:00 committed by GitHub
parent 4754ae1de4
commit debce84ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ The `CameraError` type is a baseclass type for all other errors and provides the
* `cause.domain?`: The native error's domain. (iOS only)
* `cause.details?`: More dictionary-style information about the cause. (iOS only)
* `cause.stacktrace?`: A native Java stacktrace for the cause. (Android only)
* `cause.cause?`: The cause that caused the given error. (Recursive) (Optional)
* `cause.cause?`: The cause that caused this cause. (Recursive) (Optional)
### Runtime Errors
@ -82,7 +82,7 @@ function App() {
} catch (e) {
if (e instanceof CameraCaptureError) {
switch (e.code) {
case "file-io-error":
case "capture/file-io-error":
console.error("Failed to write photo to disk!")
break
default: