Check for failure of hook_install

Created on 8 May 2010, over 14 years ago
Updated 27 January 2023, almost 2 years 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

10.1

Component
System 

Last updated 6 days 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

Merge Requests

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.71.5 2024