Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,14 +576,9 @@ std::string HelpMessageOpt(const std::string &option, const std::string &message
std::string("\n\n");
}

static std::string FormatException(const std::exception_ptr pex, const char* pszThread)
void PrintExceptionContinue(const std::exception_ptr pex, const char* pszExceptionOrigin)
{
return GetPrettyExceptionStr(pex);
}

void PrintExceptionContinue(const std::exception_ptr pex, const char* pszThread)
{
std::string message = FormatException(pex, pszThread);
std::string message = strprintf("\"%s\" rised an exception\n%s", pszExceptionOrigin, GetPrettyExceptionStr(pex));
LogPrintf("\n\n************************\n%s\n", message);
fprintf(stderr, "\n\n************************\n%s\n", message.c_str());
}
Expand Down
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool error(const char* fmt, const Args&... args)
return false;
}

void PrintExceptionContinue(const std::exception_ptr pex, const char* pszThread);
void PrintExceptionContinue(const std::exception_ptr pex, const char* pszExceptionOrigin);
void FileCommit(FILE *file);
bool TruncateFile(FILE *file, unsigned int length);
int RaiseFileDescriptorLimit(int nMinFD);
Expand Down