Skip to content

Commit

Permalink
Fixes exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Jul 2, 2024
1 parent eb7c41e commit 5e70e13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Presets/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function getPresetGlobByLanguageName(string $name): array
$name = \ucfirst(\strtolower($name));

if (!\in_array($name, $this->getAvailablePresets())) {
throw new PresetNotAvailable('Preset for Kotlin not available. Maybe contribute it?.');
$message = \sprintf('Preset for %s not available. Maybe contribute it?.', $name);
throw new PresetNotAvailable($message);
}

$presetClassName = \sprintf('Stolt\LeanPackage\Presets\%sPreset', $name);
Expand Down

0 comments on commit 5e70e13

Please sign in to comment.