diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-08 10:56:12 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-08 10:56:12 -0400 |
commit | 3b9517ef7f5eb81677de9b81514c287905ad3314 (patch) | |
tree | e96af72e46630746a4d270ae3483deea281b780b | |
parent | b27568b0fccc4ec921fa1ebecb9138cb241fa286 (diff) | |
download | cryptography-3b9517ef7f5eb81677de9b81514c287905ad3314.tar.gz cryptography-3b9517ef7f5eb81677de9b81514c287905ad3314.tar.bz2 cryptography-3b9517ef7f5eb81677de9b81514c287905ad3314.zip |
Provide a better error message here.
-rw-r--r-- | src/cryptography/x509.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 08a0c7c9..ddb50608 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -819,7 +819,8 @@ class DistributionPoint(object): def __init__(self, full_name, relative_name, reasons, crl_issuer): if full_name and relative_name: raise ValueError( - "At least one of full_name and relative_name must be None" + "You cannot provide both full_name and relative_name, at " + "least one must be None." ) if full_name and not all( |