ebitenui icon indicating copy to clipboard operation
ebitenui copied to clipboard

Friendlier messages when widget options are missing

Open williammoran opened this issue 2 years ago • 1 comments

With the current design, it's often not clear which options are required and which are optional. Unfortunately, if a required one is omitted, it results in an unhelpful nil pointer dereference. It would make the library easier to use if option processing validated that all required options were present, and provided a specific error when they're missing. Something like, "List widget is missing required WidgetOps option"

williammoran avatar Dec 19 '23 16:12 williammoran

I agree. I'll look into it

mcarpenter622 avatar Dec 28 '23 03:12 mcarpenter622

This has been added with this commit: https://github.com/ebitenui/ebitenui/commit/d5405bee081a9863a7ad91b4d27542ce8e69a1f5

Thank you!

mcarpenter622 avatar Mar 31 '24 16:03 mcarpenter622