(field: string, reason: string, hint?: string)
| 138 | } |
| 139 | |
| 140 | function localTargetError(field: string, reason: string, hint?: string): ApiError { |
| 141 | return ApiError.fromEnvelope({ |
| 142 | error: { |
| 143 | code: 'VALIDATION_ERROR', |
| 144 | message: `Field \`${field}\` is invalid: ${reason}.`, |
| 145 | nextAction: hint |
| 146 | ? hint + ' See `testsprite test run --help` for accepted values.' |
| 147 | : `See \`testsprite test run --help\` for accepted values.`, |
| 148 | requestId: 'local', |
| 149 | details: { field, reason, ...(hint ? { hint } : {}) }, |
| 150 | }, |
| 151 | }); |
| 152 | } |
no test coverage detected