Skip to content

Commit a1af166

Browse files
committed
fix ERROR casing and formatting
1 parent 274e5e8 commit a1af166

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/ai/src/requests/hybrid-helpers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ export async function callCloudOrDevice<Response>(
7878
}
7979
return inCloudCall();
8080
default:
81-
throw new AIError(AIErrorCode.Error, `Unexpected infererence mode: ${(chromeAdapter as ChromeAdapterImpl).mode}`);
81+
throw new AIError(
82+
AIErrorCode.ERROR,
83+
`Unexpected infererence mode: ${
84+
(chromeAdapter as ChromeAdapterImpl).mode
85+
}`
86+
);
8287
}
8388
}

0 commit comments

Comments
 (0)