Problem/Motivation

Splitting as a follow-up from https://git.drupalcode.org/project/drupal/-/merge_requests/14902#note_80... where @longwave writes:

Should we do more than just swallow the exception? It might contain useful information as to why bootstrap failed?

This is in reference to DrupalApplication::bootstrap() in core/lib/Drupal/Core/Command/DrupalApplication.php where we try to boot Drupal. Currently, in the catch we simply return FALSE;.

@mradcliffe replied:

This happens when trying to bootstrap, and it is okay for the console application to not bootstrap because not all commands require a Drupal installation.
I do not think we need to output anything at this time, at least not an error code or error output.
Maybe a good follow-up based on user feedback?

This is that follow-up.

Steps to reproduce

Proposed resolution

TBD.

Remaining tasks

  1. Decide if we should do anything.
  2. If so, do it.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Comments

dww created an issue. See original summary.

mradcliffe’s picture

I added the initiative meta as a related issue.