util/Exception: rename FullMessage() to GetFullMessage()
This commit is contained in:
parent
bce89feb13
commit
3cfefa53f7
@ -147,5 +147,5 @@ void
|
||||
PrintError(Response &r, std::exception_ptr 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)
|
||||
pc.LockCheckRethrowError();
|
||||
} catch (...) {
|
||||
r.Format(COMMAND_STATUS_ERROR ": %s\n",
|
||||
FullMessage(std::current_exception()).c_str());
|
||||
GetFullMessage(std::current_exception()).c_str());
|
||||
}
|
||||
|
||||
song = playlist.GetNextPosition();
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <stdexcept>
|
||||
|
||||
std::string
|
||||
FullMessage(std::exception_ptr ep) noexcept
|
||||
GetFullMessage(std::exception_ptr ep) noexcept
|
||||
{
|
||||
try {
|
||||
std::rethrow_exception(ep);
|
||||
@ -42,7 +42,7 @@ FullMessage(std::exception_ptr ep) noexcept
|
||||
return e.what();
|
||||
} catch (...) {
|
||||
return std::string(e.what()) + "; " +
|
||||
FullMessage(std::current_exception());
|
||||
GetFullMessage(std::current_exception());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,6 +38,6 @@
|
||||
* exceptions (if any).
|
||||
*/
|
||||
std::string
|
||||
FullMessage(std::exception_ptr ep) noexcept;
|
||||
GetFullMessage(std::exception_ptr ep) noexcept;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user