Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
core: gracefully handle bad op id #3131
@ry I updated bit with calling ops. Handling of malformed control buffers is still a TODO and I must say I don't know how to handle it properly...
Once we send it we get into
That's still fine, we can create some "fake" record with error, return it to JS and then throw error there, but there's another problem...
Exactly the same scenario applies to JSON dispatch.
EDIT 2: Simplest approach would be to move
EDIT: While we're at it, we might tackle the problem with minimal dispatch not returning error properly - how about returning 4 fields in record instead of 3? Alternatively we could encode errors using negative numbers.