aboutsummaryrefslogtreecommitdiff
path: root/src/lib/pubsub
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubsub')
-rw-r--r--src/lib/pubsub/pubsub_build.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/pubsub/pubsub_build.c b/src/lib/pubsub/pubsub_build.c
index 64cdcc1d57..1dc20f51f4 100644
--- a/src/lib/pubsub/pubsub_build.c
+++ b/src/lib/pubsub/pubsub_build.c
@@ -281,11 +281,14 @@ pubsub_builder_finalize(pubsub_builder_t *builder,
dispatch_t *dispatcher = NULL;
tor_assert_nonfatal(builder->n_connectors == 0);
- if (builder->n_errors)
+ if (pubsub_builder_check(builder) < 0)
goto err;
- if (pubsub_builder_check(builder) < 0)
+ if (builder->n_errors) {
+ log_warn(LD_GENERAL, "At least one error occurred previously when "
+ "configuring the dispatcher.");
goto err;
+ }
dispatcher = dispatch_new(builder->cfg);