Skip to content

Commit

Permalink
Better error message on missing symbol definition
Browse files Browse the repository at this point in the history
  • Loading branch information
yazd committed Jan 29, 2014
1 parent 0b82bea commit a165a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DKit.py
Expand Up @@ -207,8 +207,8 @@ def run(self, edit):
client = Popen(get_shell_args(args), stdin=PIPE, stdout=PIPE, shell=True)
contents = self.view.substr(sublime.Region(0, self.view.size()))
output = client.communicate(contents.encode())
output = output[0].decode('utf-8')
if (len(output) == 0):
output = output[0].decode('utf-8').strip()
if len(output) == 0 or output == 'Not found':
sublime.error_message('No symbol definition found.')
return

Expand Down

0 comments on commit a165a65

Please sign in to comment.