Commit 4b33d49a authored by Wei Lee's avatar Wei Lee Committed by Commit Bot

CCA: Throws error when the status is non-zero when doing reprocess

Bug: b/147778989
Test: Manually tested with https://crrev.com/c/2004140
Change-Id: I495d4ca19b81a6d0f556e77d08f07f1b866f7266
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2004430Reviewed-by: default avatarShik Chen <shik@chromium.org>
Commit-Queue: Wei Lee <wtlee@chromium.org>
Auto-Submit: Wei Lee <wtlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732732}
parent 4b850ded
......@@ -436,7 +436,7 @@ export class DeviceOperator {
async setReprocessOption(deviceId, effect) {
const device = await this.getDevice_(deviceId);
const {status, blob} = await device.setReprocessOption(effect);
if (blob === null) {
if (blob === null || status !== 0) {
throw new Error('Set reprocess failed: ' + status);
}
return blob;
......
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