mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-25 12:06:26 +03:00
Worked around bug in ifstream::operator!() on OS X.
This commit is contained in:
parent
3d2fa92654
commit
cf3647f7cc
@ -814,7 +814,7 @@ loadConfig(const CString& pathname)
|
||||
// load configuration
|
||||
LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname.c_str()));
|
||||
std::ifstream configStream(pathname.c_str());
|
||||
if (!configStream) {
|
||||
if (!configStream.is_open()) {
|
||||
throw XConfigRead("cannot open file");
|
||||
}
|
||||
configStream >> *ARG->m_config;
|
||||
|
Loading…
Reference in New Issue
Block a user