Verified Commit cc7f6977 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3308162 by immaculatexavier, chaubeyji, joachim, catch:...

Issue #3308162 by immaculatexavier, chaubeyji, joachim, catch: KernelTestBase::installConfig() should catch exceptions and rethrow them to say which module caused the problem
parent 2aa0817d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -700,8 +700,13 @@ protected function installConfig($modules) {
      if (!$this->container->get('module_handler')->moduleExists($module)) {
        throw new \LogicException("$module module is not enabled.");
      }
      try {
        $this->container->get('config.installer')->installDefaultConfig('module', $module);
      }
      catch (\Exception $e) {
        throw new \Exception(sprintf('Exception when installing config for module %s, message was: %s', $module, $e->getMessage()), 0, $e);
      }
    }
  }

  /**