mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
Log warning messages _before_ exiting because of earlier dcfg failure
This helps diagnostics.
This commit is contained in:
parent
47de9c7b0a
commit
a8ca464cee
1 changed files with 6 additions and 3 deletions
|
@ -281,12 +281,15 @@ pubsub_builder_finalize(pubsub_builder_t *builder,
|
||||||
dispatch_t *dispatcher = NULL;
|
dispatch_t *dispatcher = NULL;
|
||||||
tor_assert_nonfatal(builder->n_connectors == 0);
|
tor_assert_nonfatal(builder->n_connectors == 0);
|
||||||
|
|
||||||
if (builder->n_errors)
|
|
||||||
goto err;
|
|
||||||
|
|
||||||
if (pubsub_builder_check(builder) < 0)
|
if (pubsub_builder_check(builder) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
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);
|
dispatcher = dispatch_new(builder->cfg);
|
||||||
|
|
||||||
if (!dispatcher)
|
if (!dispatcher)
|
||||||
|
|
Loading…
Add table
Reference in a new issue