Skip to content

Commit a59f009

Browse files
committed
fix(utils): add missing getErrorMessage imports at 4 call sites
The sweep agents added getErrorMessage calls without the corresponding import in 4 files, causing test failures. Added the missing imports.
1 parent aae0601 commit a59f009

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/sim/executor/handlers/workflow/workflow-handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createLogger } from '@sim/logger'
2+
import { getErrorMessage } from '@sim/utils/errors'
23
import { generateId } from '@sim/utils/id'
34
import { buildNextCallChain, validateCallChain } from '@/lib/execution/call-chain'
45
import { snapshotService } from '@/lib/logs/execution/snapshot/service'

apps/sim/hooks/use-execution-stream.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useCallback } from 'react'
22
import { createLogger } from '@sim/logger'
3+
import { getErrorMessage } from '@sim/utils/errors'
34
import type {
45
BlockChildWorkflowStartedData,
56
BlockCompletedData,

apps/sim/lib/copilot/request/go/stream.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type Context, SpanStatusCode } from '@opentelemetry/api'
22
import { createLogger } from '@sim/logger'
3+
import { getErrorMessage } from '@sim/utils/errors'
34
import { ORCHESTRATION_TIMEOUT_MS } from '@/lib/copilot/constants'
45
import {
56
type MothershipStreamV1EventType,

apps/sim/tools/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createLogger } from '@sim/logger'
2-
import { toError } from '@sim/utils/errors'
2+
import { getErrorMessage, toError } from '@sim/utils/errors'
33
import { sleep } from '@sim/utils/helpers'
44
import { randomFloat } from '@sim/utils/random'
55
import { getBYOKKey } from '@/lib/api-key/byok'

0 commit comments

Comments
 (0)