forked from uncloud/uncloud
Catch filenotfound errors when launching etcd
This commit is contained in:
parent
592b745cea
commit
d9a756b50e
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ class DB(object):
|
||||||
# Can be set from outside
|
# Can be set from outside
|
||||||
self.prefix = prefix
|
self.prefix = prefix
|
||||||
|
|
||||||
|
try:
|
||||||
self.connect()
|
self.connect()
|
||||||
|
except FileNotFoundError as e:
|
||||||
|
raise UncloudException("Is the path to the etcd certs correct? {}".format(e))
|
||||||
|
|
||||||
@readable_errors
|
@readable_errors
|
||||||
def connect(self):
|
def connect(self):
|
||||||
|
|
Loading…
Reference in a new issue