Commit 2c4cb332 authored by Shik Chen's avatar Shik Chen Committed by Commit Bot

CCA: Fix a typo when throwing error

Bug: None
Test: CQ
Change-Id: I172dfaa3b5f118d9d2056c62432aaf1cf6343cf5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091173
Auto-Submit: Shik Chen <shik@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
Commit-Queue: Wei Lee <wtlee@chromium.org>
Reviewed-by: default avatarWei Lee <wtlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747638}
parent 756eba0a
...@@ -114,7 +114,7 @@ export class DeviceOperator { ...@@ -114,7 +114,7 @@ export class DeviceOperator {
const {device, status} = const {device, status} =
await this.deviceProvider_.getCameraAppDevice(deviceId); await this.deviceProvider_.getCameraAppDevice(deviceId);
if (status === cros.mojom.GetCameraAppDeviceStatus.ERROR_INVALID_ID) { if (status === cros.mojom.GetCameraAppDeviceStatus.ERROR_INVALID_ID) {
throw new Error('Invalid device id: ', deviceId); throw new Error(`Invalid device id: ${deviceId}`);
} }
if (device === null) { if (device === null) {
throw new Error('Unknown error'); throw new Error('Unknown error');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment