aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-01-26 22:19:23 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-01-26 22:19:23 +0100
commitd1d2388abd3581dff63a44dff9f224c006e06c21 (patch)
treeb64eb3bfa137315f0c850667b061a58de1ea36bc
parent214d562d6e334b55940ff7c14cb36caabc7dba9d (diff)
downloadStream-d1d2388abd3581dff63a44dff9f224c006e06c21.zip
Stream-d1d2388abd3581dff63a44dff9f224c006e06c21.tar.gz
Stream-d1d2388abd3581dff63a44dff9f224c006e06c21.tar.bz2
Update exception message.
-rw-r--r--Stream.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stream.php b/Stream.php
index 0ecf44a..3f0cd45 100644
--- a/Stream.php
+++ b/Stream.php
@@ -409,8 +409,8 @@ abstract class Stream implements \Hoa\Core\Event\Listenable {
if(!is_resource($stream))
throw new Exception(
- 'Eh! Read the API documentation! You must think two minutes ' .
- 'before using this method…', 1);
+ 'Try to change the stream resource with an invalid one; ' .
+ 'given %s.', 1, gettype($stream));
$old = $this->_bucket[self::RESOURCE];
$this->_bucket[self::RESOURCE] = $stream;