From fa825bd227b9d2bace896a2d29b5ce78bbd4e59c Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 6 Dec 2022 11:20:10 +0100 Subject: util: Include full version id in bug reports --- src/util/check.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/check.cpp b/src/util/check.cpp index c4982ff4ad..34b9d376a7 100644 --- a/src/util/check.cpp +++ b/src/util/check.cpp @@ -8,6 +8,7 @@ #include #endif +#include #include #include @@ -16,7 +17,10 @@ std::string StrFormatInternalBug(const char* msg, const char* file, int line, const char* func) { - return strprintf("Internal bug detected: \"%s\"\n%s:%d (%s)\nPlease report this issue here: %s\n", msg, file, line, func, PACKAGE_BUGREPORT); + return strprintf("Internal bug detected: \"%s\"\n%s:%d (%s)\n" + "%s %s\n" + "Please report this issue here: %s\n", + msg, file, line, func, PACKAGE_NAME, FormatFullVersion(), PACKAGE_BUGREPORT); } NonFatalCheckError::NonFatalCheckError(const char* msg, const char* file, int line, const char* func) -- cgit v1.2.3