From 7cf02846a9fcb2fe7917512ba29ecf136047beda Mon Sep 17 00:00:00 2001 From: Emtiaz Zahid Date: Sat, 25 Sep 2021 16:21:06 +0600 Subject: [PATCH] exceptions show --- src/controllers/GitLogLaravelController.php | 2 +- src/views/log.blade.php | 115 ++++++++++---------- 2 files changed, 61 insertions(+), 56 deletions(-) diff --git a/src/controllers/GitLogLaravelController.php b/src/controllers/GitLogLaravelController.php index f55ca2e..d98dd02 100644 --- a/src/controllers/GitLogLaravelController.php +++ b/src/controllers/GitLogLaravelController.php @@ -52,7 +52,7 @@ public function processRun($commands) $process->run(); if (!$process->isSuccessful()) { - throw new \Symfony\Component\Process\Exception\ProcessFailedException($process); + return $process->getErrorOutput(); } return $process->getOutput(); diff --git a/src/views/log.blade.php b/src/views/log.blade.php index 2cc9685..47b131f 100644 --- a/src/views/log.blade.php +++ b/src/views/log.blade.php @@ -41,45 +41,50 @@
-
-
-
-

History

-
- - - - - - - - - - - @foreach($records as $record) - - - - - + @if(count($records[0]) == 1) + + @else +
+
+
+

History (click for details)

+
+
CommitsDateAuthorHash
{{ $record['message'] }}{{ $record['date'] }}{{ $record['author'] }}{{ $record['hash'] }}
+ + + + + + - @endforeach - -
CommitsDateAuthorHash
-
-
+ + + @foreach($records as $record) + + {{ $record['message'] }} + {{ $record['date'] }} + {{ $record['author'] }} + {{ $record['hash'] }} + + @endforeach + + +
+ +
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
- + @endif
@@ -92,24 +97,24 @@ - \ No newline at end of file +