Skip to content

Commit

Permalink
Show command setup errors
Browse files Browse the repository at this point in the history
Ref #209
Ref #208
  • Loading branch information
mrjoelkemp committed Jun 9, 2016
1 parent b941d94 commit aa68f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BaseCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .lib.command_setup import command_setup
from .lib.track import t
from .lib.printer import p

class BaseCommand():
def run(self, modifier='', edit=None):
setup_was_successful = command_setup(self)
Expand Down
5 changes: 5 additions & 0 deletions lib/command_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

if sys.version_info < (3,):
from track import t
from show_error import show_error
from printer import p
from node_dependents_editor_backend import backend
else:
from .track import t
from .printer import p
from .show_error import show_error
from ..node_dependents_editor_backend import backend

def command_setup(self):
Expand All @@ -32,10 +34,13 @@ def command_setup(self):

self.window.config = json.loads(config)
p('parsed config from backend', self.window.config)

return success
except Exception as e:
p(e)

show_error(e, True)

t("Setup Exception", {
"message": e
})
Expand Down

0 comments on commit aa68f04

Please sign in to comment.