diff options
author | Kali Kaneko <kali@leap.se> | 2017-09-10 22:10:31 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-09-10 22:11:41 +0200 |
commit | 8f18e8a0fa96987de25d784f0df6c1066eee104e (patch) | |
tree | 63742201c4309a04f6c0058c9fcb4c53052d1d01 /src/leap/bitmask/vpn | |
parent | 7953bd1844235bf12ab82c030194c7a78c2b3b28 (diff) |
[bug] add the error as an upper level attribute of the dict
the UI is expecting it there, not inside the result data.
we probably could delete it from the later.
Diffstat (limited to 'src/leap/bitmask/vpn')
-rw-r--r-- | src/leap/bitmask/vpn/tunnel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/tunnel.py b/src/leap/bitmask/vpn/tunnel.py index 64796e9c..b49135df 100644 --- a/src/leap/bitmask/vpn/tunnel.py +++ b/src/leap/bitmask/vpn/tunnel.py @@ -118,8 +118,9 @@ class ConfiguredTunnel(object): running = yield self.__start_spawn_proc(vpnproc, cmd) vpnproc.pid = running.pid defer.returnValue(True) - except Exception: + except Exception as exc: self._vpnproc.failed = True + self._vpnproc.errmsg = exc.message raise def __start_pre_up(self, proc): |