Skip to content

Commit a44ee69

Browse files
authored
Merge pull request silverstripe#230 from TheBnl/patch-1
Fix error var $e is not defined
2 parents d1ddbe7 + 1a689e1 commit a44ee69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/PaymentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ protected function createMessage($type, $data = null)
452452
]);
453453

454454
if ($data instanceof \Exception) {
455-
$this->exceptionLogger->error($e->getMessage(), ['exception' => $e]);
455+
$this->exceptionLogger->error($data->getMessage(), ['exception' => $data]);
456456
} else {
457457
$this->logToFile($output, $type);
458458
}

0 commit comments

Comments
 (0)