Jelajahi Sumber

没有db文件的错误提示

visuddhinanda 2 tahun lalu
induk
melakukan
df60234963
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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);