Commit 6e443638 authored by Julien Muchembled's avatar Julien Muchembled

Fix logged message when openssl fails to decrypt bootstrap peer

parent eba6c762
......@@ -161,7 +161,7 @@ def decrypt(key_path, data):
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out, err = p.communicate(data)
if p.returncode:
raise subprocess.CalledProcessError(p.returncode, err)
raise subprocess.CalledProcessError(p.returncode, 'openssl', err)
return out
def encrypt(cert, data):
......@@ -176,5 +176,5 @@ def encrypt(cert, data):
os.close(r)
os.close(w)
if p.returncode:
raise subprocess.CalledProcessError(p.returncode, err)
raise subprocess.CalledProcessError(p.returncode, 'openssl', err)
return out
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment