#1095 Way for modules to gracefully cancel their loading
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Type-Enhancement
Priority-Medium
Status-Accepted
ModuleAPI
Zash
on
Description of feature:
A way for modules to abort for reasons such as configuration errors or unsupported features in storage drivers.
Motivation:
Throwing an error produces a big scary traceback that may be too verbose and scary.
MattJ
on
Throw tables as errors with some pre-defined fields? And hide this behind a module:error() API method?
Zash
on
Something like that, yeah. Also thought about catching `return false` from the module body or `module.load()`
Description of feature: A way for modules to abort for reasons such as configuration errors or unsupported features in storage drivers. Motivation: Throwing an error produces a big scary traceback that may be too verbose and scary.
Throw tables as errors with some pre-defined fields? And hide this behind a module:error() API method?
Something like that, yeah. Also thought about catching `return false` from the module body or `module.load()`