protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Improve exception message in get_field() for unknown properties

Open TomA-R opened this issue 2 months ago • 1 comments

Improves the exception message when a property doesn't exist. Previously, it only mentioned the class name, without actually explaining what property does not exist. I've added a simple test to cover this

TomA-R avatar Oct 21 '25 07:10 TomA-R

Looks like CI is failing?

1) GeneratedClassTest::testUnknownPropertyErrorIncludesPropertyAndClass
Undefined property: Foo\TestMessage::$does_not_exist

honglooker avatar Oct 23 '25 16:10 honglooker