Commit e37d52f2 authored by John Strizich's avatar John Strizich Committed by Facebook Github Bot

add better error for passing config with no steps

Summary: in response to https://github.com/facebook/openr/issues/23

Reviewed By: snarkmaster

Differential Revision: D7342371

fbshipit-source-id: 15737f79900722ce016494f994932aa26e5acad5
parent 84f6689c
...@@ -138,6 +138,9 @@ class FBCodeBuilder(object): ...@@ -138,6 +138,9 @@ class FBCodeBuilder(object):
return res return res
def build(self, steps): def build(self, steps):
if not steps:
raise RuntimeError('Please ensure that the config you are passing '
'contains steps')
return [self.setup(), self.diagnostics()] + steps return [self.setup(), self.diagnostics()] + steps
def setup(self): def setup(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment