log/windows: Fix message formatting in log_init_panic()

Accidentally left a couple of lines hanging after an internal
refactoring. Oops.
This commit is contained in:
Ignacio R. Morelle 2015-12-11 22:02:13 -03:00
parent 856bbc35b9
commit 044a6a999d

View file

@ -175,15 +175,13 @@ void log_init_panic(const libc_error& e,
}
msg << "\n\n"
<< "Runtime error: " << e.desc() << " (" << e.num() << ")\n"
<< "New log file path: " << new_log_path << '\n'
<< "Old log file path: ";
<< "Runtime error: " << e.desc() << " (" << e.num() << ")\n";
if(old_log_path.empty()) {
msg << "Log file path: " << new_log_path << '\n';
} else {
msg << "New log file path: " << new_log_path << '\n'
<< "Old log file path: ";
<< "Old log file path: " << old_log_path;
}
log_init_panic(msg.str());