Skip to content

Commit

Permalink
🚧 Fix error output when deploying EndpointV2 in tests (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Jan 21, 2024
1 parent 462566c commit 7b72ac4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,7 @@ export const setupDefaultEndpoint = async (): Promise<void> => {
if (errors.length === 0) return

const errorParser = await createErrorParser()
const parsedErrors = await Promise.all(
errors.map(({ error, transaction: { point } }) => errorParser({ error, point }))
)
const parsedErrors = await Promise.all(errors.map(({ error }) => errorParser(error)))

throw new Error(`Endpoint deployment failed:\n\n${parsedErrors.join('\n')}`)
}

0 comments on commit 7b72ac4

Please sign in to comment.