diff --git a/core/src/web/camera.ts b/core/src/web/camera.ts index 29e9a6559..bb2f049f3 100644 --- a/core/src/web/camera.ts +++ b/core/src/web/camera.ts @@ -29,6 +29,8 @@ export class CameraPluginWeb extends WebPlugin implements CameraPlugin { if (photo === null) { reject('User cancelled photos app'); + } else if (photo instanceof Error) { + reject(photo.message); } else { resolve(await this._getCameraPhoto(photo, options)); }