#1095 Way for modules to gracefully cancel their loading

Reporter Zash
Owner Nobody
Stars ★ (1)
  • Status-Accepted
  • Priority-Medium
  • ModuleAPI
  • Type-Enhancement
  1. 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.

  2. MattJ on

    Throw tables as errors with some pre-defined fields? And hide this behind a module:error() API method?

  3. Zash on

    Something like that, yeah. Also thought about catching `return false` from the module body or `module.load()`

New comment

Not published. Used for spam prevention and optional update notifications.