From f072cbbba765e3b972655880970d65760a208843 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Oct 2015 09:29:02 +0200 Subject: LocateUri: new library to classify URIs in a standard way --- src/command/CommandError.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/command/CommandError.cxx') 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; -- cgit v1.2.3