File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -32,27 +32,24 @@ public function read($path, $locale)
3232
3333 if (!file_exists ($ fileName )) {
3434 throw new ResourceBundleNotFoundException (sprintf (
35- 'The resource bundle "%s/%s.json" does not exist. ' ,
36- $ path ,
37- $ locale
35+ 'The resource bundle "%s" does not exist. ' ,
36+ $ fileName
3837 ));
3938 }
4039
4140 if (!is_file ($ fileName )) {
4241 throw new RuntimeException (sprintf (
43- 'The resource bundle "%s/%s.json" is not a file. ' ,
44- $ path ,
45- $ locale
42+ 'The resource bundle "%s" is not a file. ' ,
43+ $ fileName
4644 ));
4745 }
4846
4947 $ data = json_decode (file_get_contents ($ fileName ), true );
5048
5149 if (null === $ data ) {
5250 throw new RuntimeException (sprintf (
53- 'The resource bundle "%s/%s.json" contains invalid JSON: %s ' ,
54- $ path ,
55- $ locale ,
51+ 'The resource bundle "%s" contains invalid JSON: %s ' ,
52+ $ fileName ,
5653 json_last_error_msg ()
5754 ));
5855 }
You can’t perform that action at this time.
0 commit comments