We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf3cac commit 7c330bbCopy full SHA for 7c330bb
packages/backend/src/apps/paysg/actions/create-payment-form-submission/index.ts
@@ -3,7 +3,7 @@ import type { IRawAction } from '@plumber/types'
3
import { ZodError } from 'zod'
4
import { fromZodError } from 'zod-validation-error'
5
6
-import StepError from '@/errors/step'
+import StepError, { GenericSolution } from '@/errors/step'
7
8
import { requestSchema } from './schema'
9
@@ -118,8 +118,8 @@ const action: IRawAction = {
118
const firstError = fromZodError(error).details[0]
119
120
throw new StepError(
121
- `${firstError.message} at "${firstError.path}"`,
122
`${firstError.message} under set up step`,
+ GenericSolution.ReconfigureInvalidField,
123
$.step.position,
124
$.app.name,
125
)
0 commit comments