beremiz
Clone
Summary
Browse
Changes
Graph
WAMP: enhance feedback for connection problems from IDE or CLI
py2compat
15 months ago, Edouard Tisserant
2e01ad1cd325
WAMP: enhance feedback for connection problems from IDE or CLI
In case of authentication or TLS error, explicit warning is addressed to user through log messages.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# See COPYING file for copyrights details.
import os
def GetCertPath(project_path, CN):
# find Certificate from project
crtpath = os.path.join(project_path, 'cert', CN + '.crt')
if not os.path.exists(crtpath):
raise ValueError(
'Error: Cert %s is missing!\n' % crtpath)
return crtpath