lua-users home
lua-l archive

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


Without it :

> =loadlib("notexist","xx")
nil     The specified module could not be found.        init

With it:

> =loadlib("notexist","xx")
nil     The specified module could not be found.
        init

I am not sure whether it is *needed*. 

I figure it is nice if the printed error message is the same format on Windows.
FormatMessage() adds one or more \r\n to the end of the message
(most of the time). It will also intersperse one or more \r\n in longer 
messages (but I am guessing that the we wont get any long messages
with LoadLibrary()).

On Wed, 22 Dec 2004 12:56:46 -0200, Roberto Ierusalimschy wrote:
> > In addition the patch trims the trailing control characters
> > from the error messages returned from FormatMessage().
> 
> Is that really needed?
> 
> -- Roberto
>