fix(d1): intercept and stringify errors thrown in --json mode #4872
53.57% of diff hit (target 70.62%)
View this Pull Request on Codecov
53.57% of diff hit (target 70.62%)
Annotations
Check warning on line 126 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L126
Added line #L126 was not covered by tests
Check warning on line 129 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L129
Added line #L129 was not covered by tests
Check warning on line 132 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L132
Added line #L132 was not covered by tests
Check warning on line 136 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L135-L136
Added lines #L135 - L136 were not covered by tests
Check warning on line 138 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L138
Added line #L138 was not covered by tests
Check warning on line 148 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L148
Added line #L148 was not covered by tests
Check warning on line 151 in packages/wrangler/src/d1/execute.tsx
codecov / codecov/patch
packages/wrangler/src/d1/execute.tsx#L150-L151
Added lines #L150 - L151 were not covered by tests