Skip to content

Commit 0d4f327

Browse files
committed
Append template name to error message
1 parent aa43101 commit 0d4f327

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

view/adminhtml/templates/form/field.phtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ use Loki\Components\Util\Block\TemplateRenderer;
1717
/** @var ViewModelFactory $viewModelFactory */
1818

1919
if (empty($templateRenderer)) {
20-
throw new RuntimeException('Template renderer not found in block "'.$block->getNameInLayout().'"');
20+
throw new RuntimeException(
21+
'Template renderer not found in block "'
22+
.$block->getNameInLayout()
23+
.'" [template "'.$block->getTemplate().'"]'
24+
);
2125
}
2226

2327
$field = $block->getField();

0 commit comments

Comments
 (0)