Skip to content

Commit ebbd9fc

Browse files
williamdesDeepSeek
andcommitted
Return an error code instead of exiting the command
Calling exit kills the whole process, in a web context the command would answer with an empty success response. Co-authored-by: DeepSeek <noreply@deepseek.com> Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent a83970b commit ebbd9fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Command/SyncGithubIssueStatesCommand.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function execute(Arguments $args, ConsoleIo $io)
6262

6363
Configure::write('CronDispatcher', true);
6464
if (PHP_SAPI !== 'cli') {
65-
exit;
65+
return static::CODE_ERROR;
6666
}
6767

6868
$session = Session::create();

0 commit comments

Comments
 (0)