fix(sdk): unbreak typecheck on dev after v2 error widening (#28503)

This commit is contained in:
Kit Langton
2026-05-20 14:29:19 -04:00
committed by GitHub
parent 0e118d1961
commit ba803dd89a
3 changed files with 20 additions and 2 deletions
@@ -108,7 +108,7 @@ export async function warpWorkspaceSession(input: {
})
.catch(() => undefined)
if (!result?.data) {
if (result?.error?.name === "VcsApplyError") {
if (result?.error && "name" in result.error && result.error.name === "VcsApplyError") {
await DialogAlert.show(
input.dialog,
"Unable to Warp Session",