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)
|
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)
|
|||||||
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 @@
|
|||||||
#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
|
|||||||
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 @@
|
|||||||
* exceptions (if any).
|
* exceptions (if any).
|
||||||
*/
|
*/
|
||||||
std::string
|
std::string
|
||||||
FullMessage(std::exception_ptr ep) noexcept;
|
GetFullMessage(std::exception_ptr ep) noexcept;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user