From 70923293a939877dd15591cc7d5db42f617c07cc Mon Sep 17 00:00:00 2001 From: Brandon Bernal Date: Tue, 7 Dec 2021 16:59:29 -0500 Subject: [PATCH] Modified _runCmd() on AssetFilter.php Reporting 'warning' errors without treating them as a RuntimeException to be thrown. --- Lib/AssetFilter.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Lib/AssetFilter.php b/Lib/AssetFilter.php index 60c42400..93cf374b 100644 --- a/Lib/AssetFilter.php +++ b/Lib/AssetFilter.php @@ -93,9 +93,11 @@ protected function _runCmd($cmd, $content, $environment = null) { $Process = new AssetProcess(); $Process->environment($environment); $Process->command($cmd)->run($content); - - if ($Process->error()) { - throw new RuntimeException($Process->error()); + $error = $Process->error(); + if ($error && !stristr($error, 'warning')) { + throw new RuntimeException($error); + } else { + echo $error . "\r\n"; } return $Process->output(); }