Skip to content

Commit 3f2878a

Browse files
committed
Normalize to more generic error message
1 parent ca28299 commit 3f2878a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/framework/src/Foundation/Internal/LoadYamlConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function parseNavigationItems(array $items): array
9696
return Navigation::item(...$item);
9797
} catch (Throwable $exception) {
9898
throw new InvalidConfigurationException(
99-
'Invalid navigation item configuration detected in the YAML config file. Please double check the syntax.',
99+
'Invalid navigation item configuration detected the configuration file. Please double check the syntax.',
100100
previous: $exception
101101
);
102102
}

packages/framework/tests/Feature/YamlConfigurationFeatureTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ public function testTypeErrorsInNavigationYamlConfigAreRethrownMoreHelpfully()
670670
try {
671671
$this->runBootstrappers();
672672
} catch (InvalidConfigurationException $exception) {
673-
$this->assertSame('Invalid navigation item configuration detected in the YAML config file. Please double check the syntax.', $exception->getMessage());
673+
$this->assertSame('Invalid navigation item configuration detected the configuration file. Please double check the syntax.', $exception->getMessage());
674674
}
675675

676676
unlink('hyde.yml');
@@ -688,7 +688,7 @@ public function testMustAddDestinationToYamlConfiguredNavigationItems()
688688
try {
689689
$this->runBootstrappers();
690690
} catch (InvalidConfigurationException $exception) {
691-
$this->assertSame('Invalid navigation item configuration detected in the YAML config file. Please double check the syntax.', $exception->getMessage());
691+
$this->assertSame('Invalid navigation item configuration detected the configuration file. Please double check the syntax.', $exception->getMessage());
692692
}
693693

694694
unlink('hyde.yml');
@@ -707,7 +707,7 @@ public function testAddingExtraYamlNavigationItemFieldsThrowsAnException()
707707
try {
708708
$this->runBootstrappers();
709709
} catch (InvalidConfigurationException $exception) {
710-
$this->assertSame('Invalid navigation item configuration detected in the YAML config file. Please double check the syntax.', $exception->getMessage());
710+
$this->assertSame('Invalid navigation item configuration detected the configuration file. Please double check the syntax.', $exception->getMessage());
711711
}
712712

713713
unlink('hyde.yml');

0 commit comments

Comments
 (0)