majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

LoadFile doesn't notify user of nonexistent file #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Supplying YAML::LoadFile("xxx.yaml") with an invalid file name
2.
3.

What is the expected output? What do you see instead?
I expected an exception to be thrown because the file does not exist. I can't 
check the failbit myself because the ifstream constructor is tucked away inside 
the LoadFile function.

What version of the product are you using? On what operating system?
0.5, on RHEL 5 and MacOS 10.8.1

Please provide any additional information below.

Original issue reported on code.google.com by jack.sta...@gmail.com on 29 Oct 2012 at 9:37

GoogleCodeExporter commented 9 years ago
Good call, it should throw an exception.

Original comment by jbe...@gmail.com on 29 Oct 2012 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 29 Oct 2012 at 9:49

GoogleCodeExporter commented 9 years ago
Fixed, r582daf5269ba.

Original comment by jbe...@gmail.com on 9 Nov 2012 at 12:14