diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2022-12-07 08:47:05 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2022-12-07 08:47:32 +0100 |
commit | 272fb0a5cf2ca89bf8c15a8e9c770581542e46d5 (patch) | |
tree | e15a143c920e3e39b799865863ef80179d8480b5 | |
parent | 0596aa40f77a630d8a21035856fa5fd6838b292e (diff) | |
parent | fa825bd227b9d2bace896a2d29b5ce78bbd4e59c (diff) |
Merge bitcoin/bitcoin#26645: util: Include full version id in bug reports
fa825bd227b9d2bace896a2d29b5ce78bbd4e59c util: Include full version id in bug reports (MarcoFalke)
Pull request description:
This will show the unique id of the full source code when the bug occurred, which can help debugging
ACKs for top commit:
1440000bytes:
utACK https://github.com/bitcoin/bitcoin/commit/fa825bd227b9d2bace896a2d29b5ce78bbd4e59c
theStack:
ACK fa825bd227b9d2bace896a2d29b5ce78bbd4e59c
john-moffett:
ACK fa825bd227b9d2bace896a2d29b5ce78bbd4e59c
Tree-SHA512: a7a775718f5f9796b5cffafbb3ace8adb5c163414ec584a57143157fc9dfb86f799e3b9c8365fcb831ee1e9eafc59d699d1653d772c68392de421b3de74dcd61
-rw-r--r-- | src/util/check.cpp | 6 |
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) |