catch in createIndexPlugin() obscures errors

Created on 8 May 2024, 4 months ago

Problem/Motivation

createIndexPlugin() does a catch and doesn't pass on the error:

    catch (PluginException) {
      throw new SearchApiException("Unknown $type plugin with ID '$plugin_id'");
    }

That means that if the exception is caused by an error in code rather than by a missing plugin, you don't understand what's going on.

Steps to reproduce

Proposed resolution

Remaining tasks

🐛 Bug report
Status

Active

Version

1.0

Component

General code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024