change(panic): mention the game version in panic

This commit is contained in:
Songtronix 2020-03-20 09:47:00 +01:00
parent 8c2c2cb430
commit b940cde501

View File

@ -123,7 +123,7 @@ fn main() {
and the events that led up to the panic as possible. and the events that led up to the panic as possible.
\n\ \n\
Voxygen has logged information about the problem (including this \ Voxygen has logged information about the problem (including this \
message) to the file {:#?}. Please include the contents of this \ message) to the file {}. Please include the contents of this \
file in your bug report. file in your bug report.
\n\ \n\
> Error information\n\ > Error information\n\
@ -131,13 +131,15 @@ fn main() {
The information below is intended for developers and testers.\n\ The information below is intended for developers and testers.\n\
\n\ \n\
Panic Payload: {:?}\n\ Panic Payload: {:?}\n\
PanicInfo: {}", PanicInfo: {}\n\
// TODO: Verify that this works Game version: {} [{}]",
Settings::get_settings_path() Settings::get_settings_path()
.join("voxygen-<date>.log") .join("voxygen-<date>.log")
.display(), .display(),
reason, reason,
panic_info, panic_info,
common::util::GIT_HASH.to_string(),
common::util::GIT_DATE.to_string()
); );
error!( error!(