You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UpdateFromText() just returns a bool indicating success/failure. There is currently no way to find out where parsing failed, which makes it difficult to debug manually-written text format structs.
The text was updated successfully, but these errors were encountered:
The implementation of this is probably to update the C++ UpdateFromTextStream() methods to take an optional output parameter, or to build a parallel API like UpdateFromTextStreamOrReturnError(). I haven't given a lot of thought to the best way to actually return the error(s). Right now, the update bails out if there is any error, but I can imagine having an allow_partial_update option similar to the allow_partial_output option for text output, so ideally the API would allow multiple errors to be returned.
A (maybe) comprehensive list of the places that are are likely to need to be changed:
UpdateFromText()
just returns abool
indicating success/failure. There is currently no way to find out where parsing failed, which makes it difficult to debug manually-written text format structs.The text was updated successfully, but these errors were encountered: