Skip to content

Commit 238aec5

Browse files
Bug Fix: Catch exceptions in Helper/Ping.php (#19)
* Bug Fix: Catch exceptions in Helper/Ping.php Exceptions are not caught in the Ping helper because the catch clause only catches instances of `Ometria\Core\Helper\Exception` due to a missing `\` * Update composer.json Co-authored-by: Chris Pook <[email protected]>
1 parent c6fe62f commit 238aec5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Ometria/Core/Helper/Ping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected function _ping($parameters = array()) {
104104
$ometriaConfigHelper->log("Ping failed: Error $errorNum - $errorStr", Zend_Log::ERR);
105105
return false;
106106
}
107-
} catch (Exception $e) {
107+
} catch (\Exception $e) {
108108
$ometriaConfigHelper->log($e->getMessage());
109109
return false;
110110
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ometria/magento2",
33
"type": "magento2-module",
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"description": "Dev composer package for Ometria Extension",
66
"authors": [
77
{

0 commit comments

Comments
 (0)