aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-06 11:20:10 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-06 11:14:47 +0100
commitfa825bd227b9d2bace896a2d29b5ce78bbd4e59c (patch)
tree8d7a6d264d2cf6497e8f416949fbc8c00c0ab2f8 /src/util
parentedbe4f808a05ebd582c95e469ebcd1c87288dac0 (diff)
util: Include full version id in bug reports
Diffstat (limited to 'src/util')
-rw-r--r--src/util/check.cpp6
1 files changed, 5 insertions, 1 deletions
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 <config/bitcoin-config.h>
#endif
+#include <clientversion.h>
#include <tinyformat.h>
#include <cstdio>
@@ -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)