Skip to content

Commit

Permalink
Better error message when config.xml is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed May 28, 2021
1 parent 34e8171 commit 666eb87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/models/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ public function getExtensionConfig()
}
return new ExtensionConfig($config);
} else {
throw new \Exception('Missing configuration file for plugin ' . $this->name);
throw new \Exception(
sprintf(
'Missing configuration file for plugin %s, looked in location %s',
$this->name,
$file
)
);
}
}

Expand Down

0 comments on commit 666eb87

Please sign in to comment.