summaryrefslogtreecommitdiff
path: root/src/or/confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-09-03 10:30:50 -0400
committerNick Mathewson <nickm@torproject.org>2013-09-13 12:36:40 -0400
commitaac4f30d234491d8325b55918647242bb7c40537 (patch)
treebaa59071186b654c82d52642ff970777d7050559 /src/or/confparse.c
parent7972af7073a621f3affa69d04bd05e0e432d7309 (diff)
downloadtor-aac4f30d234491d8325b55918647242bb7c40537.tar.gz
tor-aac4f30d234491d8325b55918647242bb7c40537.zip
Add a --dump-config option to help testing option parsing.
Diffstat (limited to 'src/or/confparse.c')
-rw-r--r--src/or/confparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c
index 12ab0e4556..f2ada4f420 100644
--- a/src/or/confparse.c
+++ b/src/or/confparse.c
@@ -1074,8 +1074,8 @@ config_dump(const config_format_t *fmt, const void *default_options,
/* XXX use a 1 here so we don't add a new log line while dumping */
if (default_options == NULL) {
- if (fmt->validate_fn(NULL, defaults_tmp, 1, &msg) < 0) {
- log_err(LD_BUG, "Failed to validate default config.");
+ if (fmt->validate_fn(NULL, defaults_tmp, defaults_tmp, 1, &msg) < 0) {
+ log_err(LD_BUG, "Failed to validate default config: %s", msg);
tor_free(msg);
tor_assert(0);
}