aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-09-23 08:54:03 +0000
committerRoger Dingledine <arma@torproject.org>2008-09-23 08:54:03 +0000
commit0fc0d5266ccb91139616bbe5b16a793c8d75392f (patch)
tree4b3ec1a10b8807e8d3dbf38c6139d198983b0c31
parentb0c48d8e45c8d92e3bd55b35f58c18f8e4b4fbea (diff)
downloadtor-0fc0d5266ccb91139616bbe5b16a793c8d75392f.tar
tor-0fc0d5266ccb91139616bbe5b16a793c8d75392f.tar.gz
identical error strings in different contexts bad
svn:r16937
-rw-r--r--src/or/directory.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 80e0ff78e..e5f50ae14 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3024,11 +3024,11 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
case -1:
log_warn(LD_REND, "Rejected v2 rend descriptor (length %d) from %s.",
(int)body_len, conn->_base.address);
- write_http_status_line(conn, 400, "Invalid service descriptor "
- "rejected");
+ write_http_status_line(conn, 400,
+ "Invalid v2 service descriptor rejected");
break;
default:
- write_http_status_line(conn, 200, "Service descriptor stored");
+ write_http_status_line(conn, 200, "Service descriptor (v2) stored");
log_info(LD_REND, "Handled v2 rendezvous descriptor post: accepted");
}
goto done;
@@ -3082,9 +3082,10 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
log_fn(LOG_PROTOCOL_WARN, LD_DIRSERV,
"Rejected rend descriptor (length %d) from %s.",
(int)body_len, conn->_base.address);
- write_http_status_line(conn, 400, "Invalid service descriptor rejected");
+ write_http_status_line(conn, 400,
+ "Invalid v1 service descriptor rejected");
} else {
- write_http_status_line(conn, 200, "Service descriptor stored");
+ write_http_status_line(conn, 200, "Service descriptor (v1) stored");
}
goto done;
}