Check for failure of hook_install

Created on 8 May 2010, about 14 years ago
Updated 30 July 2023, 11 months ago

Problem/Motivation

If there is an exception during a module's installation then error message/exception is not persistent.

Proposed resolution

Store the excpetion in a log to allow for later retrieval.

Remaining tasks

Reroll
Review

User interface changes

None

API changes

None

Original report by matt2000

If hook_install fails, it can leave the system in an invalid state. We need to know when this happens.

This patch is also required to make #793274: Schema is left broken if hook_install fails β†’ testable.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
SystemΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States matt2000

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024