mbeckerle commented on a change in pull request #488:
URL: https://github.com/apache/incubator-daffodil/pull/488#discussion_r575297971
##########
File path: daffodil-runtime2/src/main/resources/examples/NestedUnion.c
##########
@@ -379,7 +380,8 @@ data_unparseSelf(const data *instance, UState *ustate)
bar_unparseSelf(&instance->bar, ustate);
break;
default:
- ustate->error_msg = "node's _choice field was not initialized during
unparsing";
+ ustate->error_msg =
+ "Unparse error: no match between choice dispatch key and any
branch key";
Review comment:
I think I'm wrong here also. This is unparse, I am not sure why we're
looking at branch keys here though. Unparsing isn't symetric with parsing. It
never needs to look at branch keys. The unparse problem is given an element in
the infoset, what branch does that indicate exists.
In Runtime1 it's called "choice branch resolver".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]