Skip to content

Commit b5df467

Browse files
committed
Force Exception if Compilation Fails
1 parent ab31770 commit b5df467

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
66

77
## [Unreleased]
88

9+
- Forcing Exception on Failure of Compile Step
910
## [0.19.0] - 2025-05-13
1011
### Added
1112
- Added support of PHP `8.4` [#2440](https://github.com/zephir-lang/zephir/issues/2440), [#2443](https://github.com/zephir-lang/zephir/pull/2443)

src/Compiler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ public function compile(bool $development = false, ?int $jobs = null): void
371371
$exit
372372
);
373373
}
374+
375+
if ($exit !== 0) {
376+
throw new CompilerException("Compilation failed. Check compile-errors.log");
377+
}
374378
}
375379

376380
/**

0 commit comments

Comments
 (0)