浏览代码

添加错误信息,输出数据数组长度

visuddhinanda 4 年之前
父节点
当前提交
ea06a384b7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/install/db_insert_wordindex_from_csv_cli.php

+ 1 - 0
app/install/db_insert_wordindex_from_csv_cli.php

@@ -57,6 +57,7 @@ try{
 					}catch(PDOException $e){
 						fwrite(STDERR,"error:".$e->getMessage()." At Line: ".$e->getLine().PHP_EOL);
 						fwrite(STDERR,"error-data:".implode(",",$data).PHP_EOL);
+						fwrite(STDERR,"error-data-count:".count($data).PHP_EOL);
 						exit;
 					}