Skip to content

Commit

Permalink
fixup! Log compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jan 19, 2024
1 parent dc06f16 commit 7e5ec74
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
3 changes: 1 addition & 2 deletions src/DiCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ public function compileContainer(): void
try {
$code = $this->dependencyCompiler->getCode($dependency);
} catch (Unbound $e) {
$msg = sprintf("\nError: %s\nUnbound: %s", $dependencyIndex, $e->getMessage());
fwrite($fp, $msg . PHP_EOL);
fwrite($fp, sprintf("\nError: %s\nUnbound: %s\n", $dependencyIndex, $e->getMessage()));

Check warning on line 102 in src/DiCompiler.php

View check run for this annotation

Codecov / codecov/patch

src/DiCompiler.php#L101-L102

Added lines #L101 - L102 were not covered by tests

throw $e;

Check warning on line 104 in src/DiCompiler.php

View check run for this annotation

Codecov / codecov/patch

src/DiCompiler.php#L104

Added line #L104 was not covered by tests
}
Expand Down
52 changes: 26 additions & 26 deletions vendor-bin/tools/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e5ec74

Please sign in to comment.