summaryrefslogtreecommitdiff
path: root/src/test/test_options.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-04-07 10:54:53 -0400
committerNick Mathewson <nickm@torproject.org>2016-04-07 10:54:53 -0400
commit7532cd439bc7d95a7c38b3c72bed0b3e46a26fa2 (patch)
tree18408ee1638ee7966ad9624b8b545754fb825949 /src/test/test_options.c
parente7034847225b1ca39dfb122e04006728d31f8db6 (diff)
downloadtor-7532cd439bc7d95a7c38b3c72bed0b3e46a26fa2.tar.gz
tor-7532cd439bc7d95a7c38b3c72bed0b3e46a26fa2.zip
When we get a bad nickname, explain what a good one is.
Closes #18300; patch from "icanhasaccount".
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r--src/test/test_options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index bd00e6105e..d0a0bef4f5 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -513,8 +513,9 @@ test_options_validate__nickname(void *ignored)
ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg);
tt_int_op(ret, OP_EQ, -1);
tt_str_op(msg, OP_EQ,
- "Nickname 'ThisNickNameIsABitTooLong' is wrong length or"
- " contains illegal characters.");
+ "Nickname 'ThisNickNameIsABitTooLong', nicknames must be between "
+ "1 and 19 characters inclusive, and must contain only the "
+ "characters [a-zA-Z0-9].");
tor_free(msg);
free_options_test_data(tdata);