Skip to content

Commit

Permalink
Fixed a minor typo in one error message
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 19, 2015
1 parent 77ccd42 commit 4d0a34e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/EasyAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private function processEntityTemplates(array $backendConfiguration)
} elseif (file_exists($templatesDir.'/easy_admin/'.$templateName.'.html.twig')) {
$templatePath = 'easy_admin/'.$templateName.'.html.twig';
} else {
throw new \RuntimeException(sprintf('The "%s" field of the "%s" entity uses a custom template called "%s" which doesn\'t exist in "app/resources/views/easy_admin/" directory.', $fieldName, $entityName, $templateName));
throw new \RuntimeException(sprintf('The "%s" field of the "%s" entity uses a custom template called "%s" which doesn\'t exist in "app/Resources/views/easy_admin/" directory.', $fieldName, $entityName, $templateName));
}
} else {
// At this point, we don't know the exact data type associated with each field.
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/EasyAdminExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function testOverriddenTemplateNamesAreLimited()

/**
* @expectedException RuntimeException
* @expectedExceptionMessage The "id" field of the "TestEntity" entity uses a custom template called "this_template_does_not_exist" which doesn't exist in "app/resources/views/easy_admin/" directory.
* @expectedExceptionMessage The "id" field of the "TestEntity" entity uses a custom template called "this_template_does_not_exist" which doesn't exist in "app/Resources/views/easy_admin/" directory.
*/
public function testCustomFieldTemplateDoesNotExist()
{
Expand Down

0 comments on commit 4d0a34e

Please sign in to comment.