From e3cdea2fce73ac4ef335bfaa4b65dc78e0944b75 Mon Sep 17 00:00:00 2001 From: Daniel Lowrey Date: Fri, 9 Dec 2016 11:54:34 -0500 Subject: [PATCH] Make exception messages more generic --- lib/MultiReasonException.php | 2 +- lib/TimeoutException.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MultiReasonException.php b/lib/MultiReasonException.php index 3c39b1e..ff54f65 100644 --- a/lib/MultiReasonException.php +++ b/lib/MultiReasonException.php @@ -11,7 +11,7 @@ class MultiReasonException extends \Exception { * @param string|null $message */ public function __construct(array $reasons, string $message = null) { - parent::__construct($message ?: "Too many promises were rejected"); + parent::__construct($message ?: "Multiple errors encountered"); $this->reasons = $reasons; } diff --git a/lib/TimeoutException.php b/lib/TimeoutException.php index 6e40db6..f01859b 100644 --- a/lib/TimeoutException.php +++ b/lib/TimeoutException.php @@ -7,6 +7,6 @@ class TimeoutException extends \Exception { * @param string|null $message */ public function __construct(string $message = null) { - parent::__construct($message ?: "Promise resolution timed out"); + parent::__construct($message ?: "Operation timed out"); } }