Closed dunn closed 8 years ago
@dunn I see the problem with the Hash, and there should be a reasonable way to catch that. Are there other conditions?
My inclination is to raise an exception when try to set an enumerable value (responds to :each
), since there's no clear way to handle those in any case.
Are there other conditions?
That's the only case I've run up against!
Or do you mean are there further conditions required to reproduce that behavior? None that I'm aware of.
OK, I think raising an exception in the element writer should make it clear enough.
@dunn v1.5.0, just released, addresses the immediate issue.
Oh awesome; thanks so much!
I ran into this because my application wasn't doing a good enough job checking the validity of new values of an ARK before trying to update it at CDL. Obviously a hash isn't valid, but I was updating multiple values and the error message didn't identify which of the new values was problematic or why:
So this isn't a bug with ezid-client, just a note that it might help other confused souls if it's possible to catch these user errors earlier.