diff options
author | Max Kellermann <max@duempel.org> | 2015-10-22 09:29:02 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-22 09:39:28 +0200 |
commit | f072cbbba765e3b972655880970d65760a208843 (patch) | |
tree | b2065cf07d599f7f44c39bb3c3537f8f72691a73 /src/command/CommandError.cxx | |
parent | 1a5b66b78dc767a4e0b721a2325957fa9ae815c2 (diff) | |
download | mpd-f072cbbba765e3b972655880970d65760a208843.tar.gz mpd-f072cbbba765e3b972655880970d65760a208843.tar.xz mpd-f072cbbba765e3b972655880970d65760a208843.zip |
LocateUri: new library to classify URIs in a standard way
Diffstat (limited to '')
-rw-r--r-- | src/command/CommandError.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/CommandError.cxx b/src/command/CommandError.cxx index d95722c3b..9f06431b4 100644 --- a/src/command/CommandError.cxx +++ b/src/command/CommandError.cxx @@ -20,6 +20,7 @@ #include "config.h" #include "CommandError.hxx" #include "db/DatabaseError.hxx" +#include "LocateUri.hxx" #include "client/Response.hxx" #include "util/Error.hxx" #include "Log.hxx" @@ -114,6 +115,9 @@ print_error(Response &r, const Error &error) return CommandResult::ERROR; } #endif + } else if (error.IsDomain(locate_uri_domain)) { + r.Error(ACK_ERROR_ARG, error.GetMessage()); + return CommandResult::ERROR; } else if (error.IsDomain(errno_domain)) { r.Error(ACK_ERROR_SYSTEM, strerror(error.GetCode())); return CommandResult::ERROR; |