mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 13:32:33 +02:00
util: Include full version id in bug reports
This commit is contained in:
parent
edbe4f808a
commit
fa825bd227
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user