[tor-commits] [tor/master] Say 'Invalid argument' instead of unclear 'Unrecognized'

nickm at torproject.org nickm at torproject.org
Wed Oct 19 22:07:08 UTC 2016


commit e77033e9eee4d40b258e3702e3f4a44fc7f1d436
Author: Ivan Markin <twim at riseup.net>
Date:   Mon Oct 17 20:10:39 2016 +0000

    Say 'Invalid argument' instead of unclear 'Unrecognized'
---
 src/or/control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/control.c b/src/or/control.c
index a4f8e37..92f1fc0 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4081,7 +4081,7 @@ handle_control_hsfetch(control_connection_t *conn, uint32_t len,
      * of the id. */
     desc_id = digest;
   } else {
-    connection_printf_to_buf(conn, "513 Unrecognized \"%s\"\r\n",
+    connection_printf_to_buf(conn, "513 Invalid argument \"%s\"\r\n",
                              arg1);
     goto done;
   }





More information about the tor-commits mailing list