Skip to content

Commit ab5a00a

Browse files
Tib-zHypeMC
andauthored
Use RuntimeException instead of InvalidConfigurationException in extension
Co-authored-by: HypeMC <[email protected]>
1 parent 760ee0d commit ab5a00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/MonologExtension.php

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

240240
$encoder = new Definition($encoderClass);

0 commit comments

Comments
 (0)