Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
fix: make PICKLIST_INACTIVE_VALUES_EXCEEDED a 400 error (#2079)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmarshall committed Feb 12, 2024
1 parent 91fc00c commit 6b8958a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/remotes/impl/salesforce/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,7 @@ ${modifiedAfter ? `WHERE SystemModstamp > ${modifiedAfter.toISOString()} ORDER B
case 'REQUIRED_FIELD_MISSING':
case 'STRING_TOO_LONG':
case 'TOO_MANY_ENUM_VALUE':
case 'PICKLIST_INACTIVE_VALUES_EXCEEDED':
return new BadRequestError(inferredTitle, { cause: error, origin: 'remote-provider' });
case 'INVALID_ID_FIELD':
case 'INVALID_LOCATOR':
Expand Down

0 comments on commit 6b8958a

Please sign in to comment.