Skip to content

Commit

Permalink
Make Migration->printException() overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
yus-ham authored May 17, 2024
1 parent f2ea9be commit 0b6f09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/db/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function down()
/**
* @param \Throwable $e
*/
private function printException($e)
protected function printException($e)

Check warning on line 165 in framework/db/Migration.php

View check run for this annotation

Codecov / codecov/patch

framework/db/Migration.php#L165

Added line #L165 was not covered by tests
{
echo 'Exception: ' . $e->getMessage() . ' (' . $e->getFile() . ':' . $e->getLine() . ")\n";
echo $e->getTraceAsString() . "\n";
Expand Down

0 comments on commit 0b6f09d

Please sign in to comment.