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 21dd87d commit 6fab60dCopy full SHA for 6fab60d
1 file changed
packages/batch-delegate/src/getLoader.ts
@@ -28,11 +28,11 @@ function createBatchFn<K = any>(options: BatchDelegateOptions) {
28
const [pathFieldName, pathNumber] = originalError.path;
29
30
if (pathFieldName !== fieldName) {
31
- throw new Error(`Error path value at index 0 should be '${fieldName}', received '${pathFieldName}'.`);
+ return originalError;
32
}
33
const pathNumberType = typeof pathNumber;
34
if (pathNumberType !== 'number') {
35
- throw new Error(`Error path value at index 1 should be of type number, received '${pathNumberType}'.`);
36
37
38
return relocatedError(originalError, originalError.path.slice(0, 0).concat(originalError.path.slice(2)));
0 commit comments