Commit a124e18
Standardize error handling across WASM wrapper functions
- Fix wasm_get_protobuf_len to return -1 for errors instead of 0
- Fix wasm_parse_query_detailed to return struct with has_error flag instead of NULL
- Ensures consistent error handling patterns:
* String functions: return error message strings
* Integer functions: return -1 for errors
* Struct functions: set has_error flag and return struct
- All 32 tests continue to pass after error handling standardization
Co-Authored-By: Dan Lynch <[email protected]>1 parent 0585f66 commit a124e18
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 219 | | |
224 | 220 | | |
225 | 221 | | |
226 | 222 | | |
227 | 223 | | |
228 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
0 commit comments