Skip to content

GetJsonValueByKey throws better message#193

Open
y423610m wants to merge 2 commits intomujin:masterfrom
y423610m:20260304_improveErrorMessage
Open

GetJsonValueByKey throws better message#193
y423610m wants to merge 2 commits intomujin:masterfrom
y423610m:20260304_improveErrorMessage

Conversation

@y423610m
Copy link

@y423610m y423610m commented Mar 4, 2026

GetJsonValueByKey can throw better message like openrave's one.
https://github.com/rdiankov/openrave/blob/master/include/openrave/openravejson.h#L933

@kanbouchou kanbouchou self-requested a review March 5, 2026 02:18
@kanbouchou
Copy link

@y423610m change looks good, please provide change log and version bump.

@y423610m
Copy link
Author

y423610m commented Mar 5, 2026

sample of improved error message when type is different..

MujinControllerCommon (JSONError): Cannot get value of non-object ("Array") for key "use".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants