Skip to content

Commit 49c9ef9

Browse files
authored
Merge pull request #14 from dotkernel/develop
error message update
2 parents 370bf7a + 23c80c6 commit 49c9ef9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/AbstractController.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ public function plugin(string $name, array $options = []): PluginInterface
123123
public function getPluginManager(): PluginManager
124124
{
125125
if (!$this->pluginManager) {
126-
throw new RuntimeException('Controller plugin manager not set. Enable the controller module by merging ' .
127-
'its ConfigProvider and make sure the controller is registered in the service manager');
126+
throw new RuntimeException(
127+
sprintf(
128+
'Controller plugin manager not set for controller `%s`.' .
129+
' Enable the controller module by merging' .
130+
' its ConfigProvider and make sure the controller is registered in the service manager',
131+
get_class($this)
132+
)
133+
);
128134
}
129135
return $this->pluginManager;
130136
}

0 commit comments

Comments
 (0)