Merge bitcoin/bitcoin#26645: util: Include full version id in bug reports
fa825bd227util: 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: ACKfa825bd227john-moffett: ACKfa825bd227Tree-SHA512: a7a775718f5f9796b5cffafbb3ace8adb5c163414ec584a57143157fc9dfb86f799e3b9c8365fcb831ee1e9eafc59d699d1653d772c68392de421b3de74dcd61
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -8,6 +8,7 @@
|
|||||||
#include <config/bitcoin-config.h>
|
#include <config/bitcoin-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <clientversion.h>
|
||||||
#include <tinyformat.h>
|
#include <tinyformat.h>
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@@ -16,7 +17,10 @@
|
|||||||
|
|
||||||
std::string StrFormatInternalBug(const char* msg, const char* file, int line, const char* func)
|
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)
|
NonFatalCheckError::NonFatalCheckError(const char* msg, const char* file, int line, const char* func)
|
||||||
|
|||||||
Reference in new issue
Block a user