Throw more user-friendly exception if referenced runner is not found.
@@ -66,7 +66,9 @@ def get_runner_model(action_api):
try:
runner_db = get_runnertype_by_name(action_api.runner_type)
except StackStormDBObjectNotFoundError:
- msg = 'RunnerType %s is not found.' % action_api.runner_type
+ msg = ('RunnerType %s is not found. If you are using old and deprecated runner name, you '
+ 'need to switch to a new one. For more information, please see '
+ 'https://docs.stackstorm.com/upgrade_notes.html#st2-v0-9' % (action_api.runner_type))
raise ValueValidationException(msg)
return runner_db
