Skip to content

Commit 7c330bb

Browse files
committed
chore: fix incorrect fix
1 parent 9cf3cac commit 7c330bb

File tree

1 file changed

+2
-2
lines changed
  • packages/backend/src/apps/paysg/actions/create-payment-form-submission

1 file changed

+2
-2
lines changed

packages/backend/src/apps/paysg/actions/create-payment-form-submission/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { IRawAction } from '@plumber/types'
33
import { ZodError } from 'zod'
44
import { fromZodError } from 'zod-validation-error'
55

6-
import StepError from '@/errors/step'
6+
import StepError, { GenericSolution } from '@/errors/step'
77

88
import { requestSchema } from './schema'
99

@@ -118,8 +118,8 @@ const action: IRawAction = {
118118
const firstError = fromZodError(error).details[0]
119119

120120
throw new StepError(
121-
`${firstError.message} at "${firstError.path}"`,
122121
`${firstError.message} under set up step`,
122+
GenericSolution.ReconfigureInvalidField,
123123
$.step.position,
124124
$.app.name,
125125
)

0 commit comments

Comments
 (0)