Skip to content
Snippets Groups Projects

Issue #3293512: Argument 2 ($code) is 'error' of type 'error' but \Exception::__construct() takes int

Closed Issue #3293512: Argument 2 ($code) is 'error' of type 'error' but \Exception::__construct() takes int
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -325,7 +325,7 @@ function geocoder_service_check_request($handler, $format, $check_ac = TRUE) {
exit();
}
if (($format && $format !== 'default') && !in_array($format, array_keys(geoPHP::getAdapterMap()), TRUE)) {
throw new Exception(t('Could not find output-format @format', array('@format' => $format)), 'error');
throw new Exception(t('Could not find output-format @format', array('@format' => $format)), WATCHDOG_ERROR);
exit();
}
if (!geocoder_service_check_perms($handler)) {
Loading