binarin/Emysql — comment on commit 7529ad48790fc986ee2a8b5921bc52a9806d92d9
File:  line 0
By hdiedrich:

Hi Alexey,

thanks very much for the pull, a question:

since in lines 247+ the same situation is handled, but with an exit() on failure, I wonder if in the case you are changing an exit() might be more appropriate than returning an Error? Or, changing the lines 247+ to also return an error. And likewise amend the execute functions that call prepare_statement(), so that they can return the error?

What is your usecase? Does it make sense to retrieve an error? Or would it not make more sense to crash - as should be done in doubt?

Are you using the Error message in any way?

Best,
Henning