Skip to content

Commit

Permalink
fix: error messages are passed using error key (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrandiaz authored Feb 7, 2024
1 parent 431fa6f commit fd4c60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/services/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class TestRunner extends AbstractCheckRunner {
.map(([checkRunId, check]) => ({ check, checkRunId, testResultId: testResultIds?.[check.logicalId] }))
return { testSessionId, checks }
} catch (err: any) {
throw new Error(err.response?.data?.message ?? err.message)
throw new Error(err.response?.data?.message ?? err.response?.data?.error ?? err.message)
}
}

Expand Down

0 comments on commit fd4c60d

Please sign in to comment.