X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fphpspec%2Fprophecy%2Fsrc%2FProphecy%2FException%2FPrediction%2FAggregateException.php;fp=vendor%2Fphpspec%2Fprophecy%2Fsrc%2FProphecy%2FException%2FPrediction%2FAggregateException.php;h=a00dfb03cba3482aeec4781dfb1cc4729dff845b;hp=44b598a440e6cedb06427c11bacc4ee8f6b2abd3;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php b/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php index 44b598a44..a00dfb03c 100644 --- a/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php +++ b/vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/AggregateException.php @@ -21,7 +21,8 @@ class AggregateException extends \RuntimeException implements PredictionExceptio public function append(PredictionException $exception) { $message = $exception->getMessage(); - $message = ' '.strtr($message, array("\n" => "\n "))."\n"; + $message = strtr($message, array("\n" => "\n "))."\n"; + $message = empty($this->exceptions) ? $message : "\n" . $message; $this->message = rtrim($this->message.$message); $this->exceptions[] = $exception;