Hi Hannes,
Good grief...! when I read your post I was like "oh sure, no problem" and looked at the code to find out the error return value. Turns out it only contains the error strings - not references to the error fields. So I'm afraid this can't be reliably done.
In my defense, I must have written that script over 8 years ago now.
What a pain....
If this is a show stopper for you, let me know and I'll update the script to (optionally!) return a hash of [error name field] => "error message" so you can find out which fields had errors.
It should really do it by default, but I have to worry about backward compatibility on people's systems.
Let me know!
- Ben
Good grief...! when I read your post I was like "oh sure, no problem" and looked at the code to find out the error return value. Turns out it only contains the error strings - not references to the error fields. So I'm afraid this can't be reliably done.
In my defense, I must have written that script over 8 years ago now.
What a pain....
If this is a show stopper for you, let me know and I'll update the script to (optionally!) return a hash of [error name field] => "error message" so you can find out which fields had errors.
It should really do it by default, but I have to worry about backward compatibility on people's systems.
Let me know!
- Ben