Skip to content

Commit

Permalink
Fix stress error meessages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jatana committed Jul 21, 2018
1 parent 4d50b80 commit bd4a993
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stress_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,18 @@ def find_source(base_dir, name, run_settings):
_found = src
return _found


bad_source = file
good_source = find_source(base_dir, task_name + '__Good', get_settings().get('run_settings'))
gen_source = find_source(base_dir, task_name + '__Generator', get_settings().get('run_settings'))

if not good_source:
sublime.error_message(task_name + '__Good' + ' not found')
return

if not gen_source:
sublime.error_message(task_name + '__Generator' + ' not found')
return

if type(good_source) is list:
sublime.error_message('conflict files: ' + ' and '.join(good_source))
return
Expand Down

0 comments on commit bd4a993

Please # to comment.