mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
more helpful error message
svn:r6283
This commit is contained in:
parent
314f24870d
commit
e47075e771
1 changed files with 2 additions and 2 deletions
|
@ -1230,8 +1230,8 @@ handle_control_mapaddress(connection_t *conn, uint32_t len, const char *body)
|
||||||
if (!v0) {
|
if (!v0) {
|
||||||
size_t anslen = strlen(line)+256;
|
size_t anslen = strlen(line)+256;
|
||||||
char *ans = tor_malloc(anslen);
|
char *ans = tor_malloc(anslen);
|
||||||
tor_snprintf(ans, anslen,
|
tor_snprintf(ans, anslen, "512-syntax error: mapping '%s' is "
|
||||||
"512-syntax error: mapping '%s' has wrong number of items.", line);
|
"not of expected form 'foo=bar'.", line);
|
||||||
smartlist_add(reply, ans);
|
smartlist_add(reply, ans);
|
||||||
}
|
}
|
||||||
log_info(LD_CONTROL, "Skipping MapAddress '%s': wrong "
|
log_info(LD_CONTROL, "Skipping MapAddress '%s': wrong "
|
||||||
|
|
Loading…
Add table
Reference in a new issue