mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 10:26:06 +02:00
Displaying DialogError details correctly
This commit is contained in:
+5
-1
@@ -623,7 +623,11 @@ def _handle_exception(exc_type, exc_value, trace, config):
|
||||
# Here we're passing a client or ACME error out to the client at the shell
|
||||
# Tell the user a bit about what happened, without overwhelming
|
||||
# them with a full traceback
|
||||
err = traceback.format_exception_only(exc_type, exc_value)[0]
|
||||
from dialog import DialogError
|
||||
if issubclass(exc_type, DialogError):
|
||||
err = exc_value.complete_message()
|
||||
else:
|
||||
err = traceback.format_exception_only(exc_type, exc_value)[0]
|
||||
# Typical error from the ACME module:
|
||||
# acme.messages.Error: urn:acme:error:malformed :: The request message was
|
||||
# malformed :: Error creating new registration :: Validation of contact
|
||||
|
||||
Reference in New Issue
Block a user