Dear Glorp maintainers or people interested,
I would like to suggest an extension to DatabaseRow>>#at:, which adds a bit of helpful information to the error message 'missing field'.
I may be the only one who sometimes struggles with mapping problems when I change my application and add new classes or attributes. Sometimes, I get the 'missing field' error, which is not really a helpful message.
So I suggest to change the method to add a bit of context, which, btw, is avaliable at the moment the error occurs anyways. But reading it in the error message rather than having to debug a few minutes saves a bit of time.
So here it is:
-- DatabaseRow>>#at:-
at: aField
^self at: aField ifAbsent: [self error: 'missing field: ', aField printString, ' in ', self owner printString].
----
Sorry if this is not the right place to post such suggestions to. I just don't know whch one is the right one and hope somebody interested reads this eventually.
Joachim