diff options
Diffstat (limited to '')
-rw-r--r-- | src/client/Response.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/Response.hxx b/src/client/Response.hxx index ba53298c8..044bdf307 100644 --- a/src/client/Response.hxx +++ b/src/client/Response.hxx @@ -31,8 +31,15 @@ class Client; class Response { Client &client; + /** + * This command's index in the command list. Used to generate + * error messages. + */ + const unsigned list_index; + public: - explicit Response(Client &_client):client(_client) {} + Response(Client &_client, unsigned _list_index) + :client(_client), list_index(_list_index) {} Response(const Response &) = delete; Response &operator=(const Response &) = delete; |