Skip to content

Commit

Permalink
added detail to inspector factory exception
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrawley committed May 7, 2016
1 parent 24d50ea commit 490c0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Inspect.php
Expand Up @@ -45,7 +45,7 @@ public static function this($nameOrInstance, $closureScope = null)
return self::thisTrait($nameOrInstance);
}

throw RuntimeException::create('Invalid class name or instance provided to inspector.');
throw RuntimeException::create('Invalid class name or instance (%s) provided to inspector.')->with(var_export($nameOrInstance, true));
}

/**
Expand Down

0 comments on commit 490c0fd

Please sign in to comment.