From 819d160f09b5ce7ee1715f21dc72cda854e3682c Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Tue, 2 Jan 2018 02:39:38 -0200 Subject: [PATCH 1/3] [ProcessCommand] Simplify path of failed file --- src/Console/Command/ProcessCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index d2d4ccba4a6..5731d630762 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -160,7 +160,7 @@ final class ProcessCommand extends Command $this->processFile($fileInfo, $i); } catch (Throwable $throwable) { throw new FileProcessingException( - sprintf('Processing of "%s" file failed.', $fileInfo->getRealPath()), + sprintf('Processing of "%s" file failed.', $fileInfo->getRelativePathname()), $throwable->getCode(), $throwable ); From 6d90b516bb748dcb635d2b339ced0b63255d25b9 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Tue, 2 Jan 2018 03:01:16 -0200 Subject: [PATCH 2/3] Add one line between progress bar and Exception trace --- src/Console/Command/ProcessCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index 5731d630762..a1f872aa22f 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -159,6 +159,7 @@ final class ProcessCommand extends Command try { $this->processFile($fileInfo, $i); } catch (Throwable $throwable) { + $this->consoleStyle->newLine(); throw new FileProcessingException( sprintf('Processing of "%s" file failed.', $fileInfo->getRelativePathname()), $throwable->getCode(), From 1c85a47f66ca7505a92abcd7c7b016bc91175757 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Tue, 2 Jan 2018 15:18:41 -0200 Subject: [PATCH 3/3] Use getPathname --- src/Console/Command/ProcessCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index a1f872aa22f..48765c2e5b8 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -161,7 +161,7 @@ final class ProcessCommand extends Command } catch (Throwable $throwable) { $this->consoleStyle->newLine(); throw new FileProcessingException( - sprintf('Processing of "%s" file failed.', $fileInfo->getRelativePathname()), + sprintf('Processing of "%s" file failed.', $fileInfo->getPathname()), $throwable->getCode(), $throwable );