Skip to content

Commit d21bbcd

Browse files
Tib-zHypeMC
authored andcommitted
Use RuntimeException instead of InvalidConfigurationException in extension
Co-authored-by: HypeMC <[email protected]>
1 parent aacf16b commit d21bbcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/MonologExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
228228
} elseif ('json' === $handler['publisher']['encoder']) {
229229
$encoderClass = 'Gelf\Encoder\JsonEncoder';
230230
} else {
231-
throw new InvalidConfigurationException('The gelf message encoder must be either "compressed_json" or "json".');
231+
throw new \RuntimeException('The gelf message encoder must be either "compressed_json" or "json".');
232232
}
233233

234234
$encoder = new Definition($encoderClass);

0 commit comments

Comments
 (0)