소스 검색

Fix error code

Laurent Destailleur 11 달 전
부모
커밋
4e9367e463
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      build/generate_filelist_xml.php

+ 1 - 1
build/generate_filelist_xml.php

@@ -33,7 +33,7 @@ $path = dirname(__FILE__).'/';
 // Test if batch mode
 if (substr($sapi_type, 0, 3) == 'cgi') {
 	echo "Error: You are using PHP for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";
-	exit;
+	exit(1);
 }
 
 require_once $path."../htdocs/master.inc.php";