Skip to content

Commit

Permalink
added more information about a resource in error and debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 20, 2011
1 parent c3e1d03 commit 2b858b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inline.php
Expand Up @@ -73,7 +73,7 @@ static public function dump($value)
{
switch (true) {
case is_resource($value):
throw new DumpException('Unable to dump PHP resources in a YAML file.');
throw new DumpException(sprintf('Unable to dump PHP resources in a YAML file ("%s").', get_resource_type($value)));
case is_object($value):
return '!!php/object:'.serialize($value);
case is_array($value):
Expand Down

0 comments on commit 2b858b0

Please sign in to comment.