changed misleading log message
This commit is contained in:
parent
59a92fa34b
commit
f0d263d96e
1 changed files with 4 additions and 0 deletions
|
|
@ -193,7 +193,11 @@ namespace ini {
|
||||||
(create ? OPEN_ALWAYS : OPEN_EXISTING),
|
(create ? OPEN_ALWAYS : OPEN_EXISTING),
|
||||||
NULL);
|
NULL);
|
||||||
if(settingsHandle == INVALID_HANDLE_VALUE) {
|
if(settingsHandle == INVALID_HANDLE_VALUE) {
|
||||||
|
std::string createString = std::string(create ? (char*)"create" : (char*)"open");
|
||||||
log_debugcpp("[SET] Can't create settings file: " + std::to_string(GetLastError()));
|
log_debugcpp("[SET] Can't create settings file: " + std::to_string(GetLastError()));
|
||||||
|
log_debugcpp("[SET] Can't " + createString + \
|
||||||
|
" settings file on: " + std::string(path) + \
|
||||||
|
", error: " + std::to_string(GetLastError()));
|
||||||
releaseBeforeReturn();
|
releaseBeforeReturn();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue