Permalink
Browse files

[Yaml][Parser] changes according review

  • Loading branch information...
1 parent 7555587 commit 5a83afdb51c116320b0e41b9f1265eabc5605f27 @makasim makasim committed Jan 13, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 Yaml.php
View
@@ -49,10 +49,7 @@ static public function parse($input)
// if input is a file, process it
if (strpos($input, "\n") === false && is_file($input)) {
if (false === is_readable($input)) {
- throw new \InvalidArgumentException(sprintf(
- 'The service file "%s" is not readable.',
- $input
- ));
+ throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));
}
$file = $input;

0 comments on commit 5a83afd

Please sign in to comment.