Improved error reporting
This commit is contained in:
@ -21,7 +21,9 @@ class Hotfix
|
||||
|
||||
protected function load($hotfix)
|
||||
{
|
||||
// echo $hotfix."\n\n";
|
||||
if (strpos($hotfix, "\n---\n")===false) {
|
||||
throw new \Exception("Hotfix is missing a proper header, is line endings wrong?");
|
||||
}
|
||||
list ($header, $body) = explode("\n---\n", $hotfix, 2);
|
||||
$header = Yaml::parse($header);
|
||||
|
||||
|
Reference in New Issue
Block a user