lua-users home
lua-l archive

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


2017-03-30 14:18 GMT+02:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>>    local pkg = assert(require "obscuremodule")
>
> Calling assert here does nothing because require raises errors if they occur.
>
> Perhaps you mean
>
>         local ok, pkg = pcall(require,"obscuremodule")

Thank you. :-)