> The typical Lua convention is to return nil, <error> on error, and > whatever the result is on non-error. It's not a hard-and-fast rule, > but some functions depend on it (like assert()). assert depends on true/false, not nil.