command: remove the obsolete Error support code
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
#include "AudioFormat.hxx"
|
||||
#include "ReplayGainConfig.hxx"
|
||||
#include "util/ScopeExit.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#ifdef ENABLE_DATABASE
|
||||
#include "db/update/Service.hxx"
|
||||
@@ -196,8 +195,6 @@ handle_status(Client &client, gcc_unused Request args, Response &r)
|
||||
client.player_control.LockCheckRethrowError();
|
||||
} catch (const std::exception &e) {
|
||||
r.Format(COMMAND_STATUS_ERROR ": %s\n", e.what());
|
||||
} catch (const Error &error) {
|
||||
r.Format(COMMAND_STATUS_ERROR ": %s\n", error.GetMessage());
|
||||
} catch (...) {
|
||||
r.Format(COMMAND_STATUS_ERROR ": unknown\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user