Skip to content

Commit

Permalink
log/windows: Fix message formatting in log_init_panic()
Browse files Browse the repository at this point in the history
Accidentally left a couple of lines hanging after an internal
refactoring. Oops.
  • Loading branch information
irydacea committed Dec 12, 2015
1 parent 856bbc3 commit 044a6a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/log_windows.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 044a6a9

Please sign in to comment.