浏览代码

没有db文件的错误提示

visuddhinanda 2 年之前
父节点
当前提交
df60234963
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Console/Commands/ExportZip.php

+ 2 - 0
app/Console/Commands/ExportZip.php

@@ -64,6 +64,8 @@ class ExportZip extends Command
         $exportFullFileName = storage_path($exportPath.'/'.$exportFile);
         $exportFullFileName = storage_path($exportPath.'/'.$exportFile);
         if(!file_exists($exportFullFileName)){
         if(!file_exists($exportFullFileName)){
             Log::error('export offline: no db file {filename}',['filename'=>$exportFullFileName]);
             Log::error('export offline: no db file {filename}',['filename'=>$exportFullFileName]);
+            $this->error('export offline: no db file {filename}'.$exportFullFileName);
+            return 1;
         }
         }
         $zipFullFileName = storage_path($exportPath.'/'.$zipFile);
         $zipFullFileName = storage_path($exportPath.'/'.$zipFile);