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): ...@@ -161,7 +161,7 @@ def decrypt(key_path, data):
stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdin=subprocess.PIPE, stdout=subprocess.PIPE)
out, err = p.communicate(data) out, err = p.communicate(data)
if p.returncode: if p.returncode:
raise subprocess.CalledProcessError(p.returncode, err) raise subprocess.CalledProcessError(p.returncode, 'openssl', err)
return out return out
def encrypt(cert, data): def encrypt(cert, data):
...@@ -176,5 +176,5 @@ def encrypt(cert, data): ...@@ -176,5 +176,5 @@ def encrypt(cert, data):
os.close(r) os.close(r)
os.close(w) os.close(w)
if p.returncode: if p.returncode:
raise subprocess.CalledProcessError(p.returncode, err) raise subprocess.CalledProcessError(p.returncode, 'openssl', err)
return out 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