File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ public function execute(): ProcessResult
93
93
94
94
$ this ->result = Process::run ($ this ->buildCommand ());
95
95
96
- if ($ this ->logPath && File::exists ($ this ->logPath )) {
97
- $ this ->logs = File::get ($ this ->logPath );
98
- }
99
-
100
96
if ($ this ->deleteFiles ) {
97
+ if ($ this ->logPath && File::exists ($ this ->logPath )) {
98
+ $ this ->logs = File::get ($ this ->logPath );
99
+ }
100
+
101
101
$ this ->deleteGeneratedFiles ();
102
102
}
103
103
@@ -262,7 +262,15 @@ public function deleteFilesAfterRun(bool $delete = true): static
262
262
263
263
public function logs (): string
264
264
{
265
- return $ this ->logs ;
265
+ if ($ this ->logs ) {
266
+ return $ this ->logs ;
267
+ }
268
+
269
+ if ($ this ->logPath && File::exists ($ this ->logPath )) {
270
+ return File::get ($ this ->logPath );
271
+ }
272
+
273
+ return 'No log file available ' ;
266
274
}
267
275
268
276
public function result (): ProcessResult
You can’t perform that action at this time.
0 commit comments