Browse Source

and now we actually do it, too.

svn:r5414
Roger Dingledine 20 years ago
parent
commit
d2b93df26c
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/or/control.c

+ 5 - 5
src/or/control.c

@@ -712,26 +712,26 @@ control_setconf_helper(connection_t *conn, uint32_t len, char *body,
     switch (r) {
     switch (r) {
       case -1:
       case -1:
         v0_err = ERR_UNRECOGNIZED_CONFIG_KEY;
         v0_err = ERR_UNRECOGNIZED_CONFIG_KEY;
-        msg = "Unrecognized option";
+        msg = "552 Unrecognized option";
         break;
         break;
       case -2:
       case -2:
         v0_err = ERR_INVALID_CONFIG_VALUE;
         v0_err = ERR_INVALID_CONFIG_VALUE;
-        msg = "Unrecognized option value";
+        msg = "513 Unrecognized option value";
         break;
         break;
       case -3:
       case -3:
         v0_err = ERR_INVALID_CONFIG_VALUE;
         v0_err = ERR_INVALID_CONFIG_VALUE;
-        msg = "Transition not allowed";
+        msg = "553 Transition not allowed";
         break;
         break;
       case -4:
       case -4:
       default:
       default:
         v0_err = ERR_INVALID_CONFIG_VALUE;
         v0_err = ERR_INVALID_CONFIG_VALUE;
-        msg = "Unable to set option";
+        msg = "553 Unable to set option";
         break;
         break;
     }
     }
     if (v0) {
     if (v0) {
       send_control0_error(conn, v0_err, msg);
       send_control0_error(conn, v0_err, msg);
     } else {
     } else {
-      connection_printf_to_buf(conn, "552 %s\r\n", msg);
+      connection_printf_to_buf(conn, "%s\r\n", msg);
     }
     }
     config_free_lines(lines);
     config_free_lines(lines);
     return 0;
     return 0;