Skip to content

Commit

Permalink
Dev: Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 27, 2017
1 parent 28c2c08 commit 235c3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/TemplateConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ protected function getTemplateForPath($oRTemplate, $sPath )
while (empty($oRTemplate->template->$sPath)){
$oMotherTemplate = $oRTemplate->oMotherTemplate;
if(!($oMotherTemplate instanceof TemplateConfiguration)){
throw new Exception("can't find a template for '$sPath' path !");
throw new Exception("can't find a template for template '{$oRTemplate->template_name}' in path '$sPath'.");
break;
}
$oRTemplate = $oMotherTemplate;
Expand Down

0 comments on commit 235c3dc

Please sign in to comment.