Skip to content

Commit

Permalink
Merge pull request #230 from TheBnl/patch-1
Browse files Browse the repository at this point in the history
Fix error var $e is not defined
  • Loading branch information
bummzack authored Dec 18, 2020
2 parents d1ddbe7 + 1a689e1 commit a44ee69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ protected function createMessage($type, $data = null)
]);

if ($data instanceof \Exception) {
$this->exceptionLogger->error($e->getMessage(), ['exception' => $e]);
$this->exceptionLogger->error($data->getMessage(), ['exception' => $data]);
} else {
$this->logToFile($output, $type);
}
Expand Down

0 comments on commit a44ee69

Please sign in to comment.