Browse files

[Yaml][Parser] changes according review

  • Loading branch information...
1 parent efce640 commit 79610141401fd901a886c430ea526315af8ef1f1 @makasim makasim committed Jan 13, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/Symfony/Component/Yaml/Yaml.php
View
5 src/Symfony/Component/Yaml/Yaml.php
@@ -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 7961014

Please sign in to comment.