lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Edgar Toernig wrote:
> IMHO your assumption that _ALERT is a suitable _ERRORMESSAGE function is
> wrong.  All error msgs (including assert msgs) have no trailing '\n'.
> Try issuing a normal error("foo") - it will be printed _wrong_, too.

I see.  From just reading the manual it sounded like _ERRORMESSAGE defaulted
to _ALERT, but looking at the code clearly all 3 implementations of
_ERRORMESSAGE append a linefeed to the message.