Changeset efac902 in trunk


Ignore:
Timestamp:
2020-12-11T16:23:02Z (4 years ago)
Author:
Jean-Paul Calderone <exarkun@…>
Branches:
master
Children:
9a8f7220
Parents:
9259264
git-author:
Jean-Paul Calderone <exarkun@…> (2020-12-11 16:22:39)
git-committer:
Jean-Paul Calderone <exarkun@…> (2020-12-11 16:23:02)
Message:

Slightly better user-facing privacy error message here

Location:
src/allmydata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/node.py

    r9259264 refac902  
    655655    if not reveal_ip:
    656656        if default_connection_handlers.get("tcp") == "tcp":
    657             raise PrivacyError("tcp = tcp, must not be set to 'tcp'")
     657            raise PrivacyError(
     658                "Privacy requested with `reveal-IP-address = false` "
     659                "but `tcp = tcp` conflicts with this.",
     660            )
    658661    return default_connection_handlers
    659662
  • TabularUnified src/allmydata/test/test_connections.py

    r9259264 refac902  
    413413        self.assertEqual(
    414414            str(ctx.exception),
    415             "tcp = tcp, must be set to 'tor' or 'disabled'",
     415            "Privacy requested with `reveal-IP-address = false` "
     416            "but `tcp = tcp` conflicts with this.",
    416417        )
    417418
Note: See TracChangeset for help on using the changeset viewer.