We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f281cd commit 15af034Copy full SHA for 15af034
src/SPC/builder/unix/UnixBuilderBase.php
@@ -143,8 +143,9 @@ protected function sanityCheck(int $build_target): void
143
if (($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI) {
144
logger()->info('running cli sanity check');
145
[$ret, $output] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -r "echo \"hello\";"');
146
- if ($ret !== 0 || trim(implode('', $output)) !== 'hello') {
147
- throw new RuntimeException('cli failed sanity check');
+ $raw_output = implode('', $output);
+ if ($ret !== 0 || trim($raw_output) !== 'hello') {
148
+ throw new RuntimeException("cli failed sanity check: ret[{$ret}]. out[{$raw_output}]");
149
}
150
151
foreach ($this->exts as $ext) {
0 commit comments