misc: updateServer 시 좀 더 자세한 메시지 출력

This commit is contained in:
2022-05-14 22:20:34 +09:00
parent 63cfa5e298
commit 83c2fc918f
+6 -3
View File
@@ -59,9 +59,10 @@ function genJS($server)
exec(($command), $output, $result_code);
if ($result_code != 0) {
array_unshift($output, "genJS: ${server}");
Json::die([
'result' => false,
'reason' => $output
'reason' => join(", ", $output)
]);
}
}
@@ -90,9 +91,10 @@ function tryComposerInstall()
exec($runCode, $output, $result_code);
if ($result_code != 0) {
array_unshift($output, 'composer install');
Json::die([
'result' => false,
'reason' => $output
'reason' => join(", ", $output)
]);
}
@@ -144,9 +146,10 @@ function tryNpmInstall()
}
if ($result_code != 0) {
array_unshift($output, 'node install');
Json::die([
'result' => false,
'reason' => $output
'reason' => join(", ", $output)
]);
}