Explorar o código

[Yaml][Parser] changes according review

Maksim Kotlyar %!s(int64=13) %!d(string=hai) anos
pai
achega
7961014140
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      src/Symfony/Component/Yaml/Yaml.php

+ 1 - 4
src/Symfony/Component/Yaml/Yaml.php

@@ -49,10 +49,7 @@ class Yaml
         // 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;