Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit ee4c631

Browse files
dbusagikazarmark
authored andcommitted
improve promise exception
1 parent 12945dd commit ee4c631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Guzzle6Promise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(PromiseInterface $promise, RequestInterface $request
6363
}
6464

6565
if (!($reason instanceof GuzzleExceptions\GuzzleException)) {
66-
throw new \RuntimeException('Invalid reason');
66+
throw new \RuntimeException('Invalid exception returned from Guzzle6', $reason);
6767
}
6868

6969
$this->state = self::REJECTED;

0 commit comments

Comments
 (0)