From b940cde5018b0c424a54df677b4059ce76b1f04d Mon Sep 17 00:00:00 2001 From: Songtronix Date: Fri, 20 Mar 2020 09:47:00 +0100 Subject: [PATCH] change(panic): mention the game version in panic --- voxygen/src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/voxygen/src/main.rs b/voxygen/src/main.rs index f2a091daf0..d461267ecf 100644 --- a/voxygen/src/main.rs +++ b/voxygen/src/main.rs @@ -123,7 +123,7 @@ fn main() { and the events that led up to the panic as possible. \n\ 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. \n\ > Error information\n\ @@ -131,13 +131,15 @@ fn main() { The information below is intended for developers and testers.\n\ \n\ Panic Payload: {:?}\n\ - PanicInfo: {}", - // TODO: Verify that this works + PanicInfo: {}\n\ + Game version: {} [{}]", Settings::get_settings_path() .join("voxygen-.log") .display(), reason, panic_info, + common::util::GIT_HASH.to_string(), + common::util::GIT_DATE.to_string() ); error!(