Commit 3cfefa53 authored by Max Kellermann's avatar Max Kellermann

util/Exception: rename FullMessage() to GetFullMessage()

parent bce89feb
...@@ -147,5 +147,5 @@ void ...@@ -147,5 +147,5 @@ void
PrintError(Response &r, std::exception_ptr ep) PrintError(Response &r, std::exception_ptr ep)
{ {
LogError(ep); LogError(ep);
r.Error(ToAck(ep), FullMessage(ep).c_str()); r.Error(ToAck(ep), GetFullMessage(ep).c_str());
} }
...@@ -196,7 +196,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r) ...@@ -196,7 +196,7 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
pc.LockCheckRethrowError(); pc.LockCheckRethrowError();
} catch (...) { } catch (...) {
r.Format(COMMAND_STATUS_ERROR ": %s\n", r.Format(COMMAND_STATUS_ERROR ": %s\n",
FullMessage(std::current_exception()).c_str()); GetFullMessage(std::current_exception()).c_str());
} }
song = playlist.GetNextPosition(); song = playlist.GetNextPosition();
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <stdexcept> #include <stdexcept>
std::string std::string
FullMessage(std::exception_ptr ep) noexcept GetFullMessage(std::exception_ptr ep) noexcept
{ {
try { try {
std::rethrow_exception(ep); std::rethrow_exception(ep);
...@@ -42,7 +42,7 @@ FullMessage(std::exception_ptr ep) noexcept ...@@ -42,7 +42,7 @@ FullMessage(std::exception_ptr ep) noexcept
return e.what(); return e.what();
} catch (...) { } catch (...) {
return std::string(e.what()) + "; " + return std::string(e.what()) + "; " +
FullMessage(std::current_exception()); GetFullMessage(std::current_exception());
} }
} }
......
...@@ -38,6 +38,6 @@ ...@@ -38,6 +38,6 @@
* exceptions (if any). * exceptions (if any).
*/ */
std::string std::string
FullMessage(std::exception_ptr ep) noexcept; GetFullMessage(std::exception_ptr ep) noexcept;
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment