Skip to content
Snippets Groups Projects
Verified Commit 8c1960ea authored by Yuri Kulinkovich's avatar Yuri Kulinkovich Committed by Juraj Nemec
Browse files

Issue #3293512 by yurikulinkovich: Argument 2 ($code) is 'error' of type...

Issue #3293512 by yurikulinkovich: Argument 2 ($code) is 'error' of type 'error' but \Exception::__construct() takes int
parent 128ae30d
No related branches found
No related tags found
No related merge requests found
......@@ -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)));
exit();
}
if (!geocoder_service_check_perms($handler)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment