[or-cvs] more helpful error message
arma at seul.org
arma at seul.org
Sat Apr 1 09:54:57 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
control.c
Log Message:
more helpful error message
Index: control.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -p -d -r1.184 -r1.185
--- control.c 1 Apr 2006 09:50:43 -0000 1.184
+++ control.c 1 Apr 2006 09:54:54 -0000 1.185
@@ -1230,8 +1230,8 @@ handle_control_mapaddress(connection_t *
if (!v0) {
size_t anslen = strlen(line)+256;
char *ans = tor_malloc(anslen);
- tor_snprintf(ans, anslen,
- "512-syntax error: mapping '%s' has wrong number of items.", line);
+ tor_snprintf(ans, anslen, "512-syntax error: mapping '%s' is "
+ "not of expected form 'foo=bar'.", line);
smartlist_add(reply, ans);
}
log_info(LD_CONTROL, "Skipping MapAddress '%s': wrong "
More information about the tor-commits
mailing list