Fix flow exception wording

This commit is contained in:
Joshua Harlow
2013-05-21 18:46:51 -07:00
parent 033e55fd12
commit 90a92c32af

View File

@@ -167,8 +167,8 @@ class Job(object):
associate_all(p)
if not flow.state != states.PENDING:
raise exc.InvalidStateException("Unable to run job when job is"
" in state %s" % (flow.state))
raise exc.InvalidStateException("Unable to run %s when in"
" state %s" % (flow, flow.state))
associate_all(flow)
return flow.run(self.context, *args, **kwargs)