Stefan wrote:...
That's just the result of the code you've written.
You have to learn first what to do and how. (Do correct indent, like with Python script too)
In general, I'd say no to this
Computers are to help us. And if a user makes a mistake, it should help as much as possible to recognize, what's wrong. XY often ignores errors, especially when scripting, and so often makes it rather hard to find out why we have a wrong result, a non-working script, or whatever. And we talk about coding: who codes makes errors, that's for sure!
So some times you win some minutes by not coding correct, but XY somehow doing the right thing. Then you loose some hours(!) by searching for a (small!) error. I'd prefer if XY would give much more info about errors.
But: in this situation I'm not convinced that some header would really help - it even wouldn't descibe the error itself. It just would ask to select between things you don't recognize
So I think: it's not enough reason to change it.