Skip to content

Commit

Permalink
Throw error if no default step is specified on an interact script wit…
Browse files Browse the repository at this point in the history
…h more than 1 step.
  • Loading branch information
aufdemrand committed Apr 8, 2013
1 parent 12d7e8a commit 414d787
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -45,6 +45,8 @@ public InteractScriptContainer(ConfigurationSection configurationSection, String
// Make default step the only step if there is only one step
if (defaultStep == null && steps.size() == 1)
defaultStep = steps.get(0);

if (defaultStep == null) throw new ExceptionInInitializerError("Must specify a default step in '" + getName() + "'!");
}

private String defaultStep = null;
Expand Down

0 comments on commit 414d787

Please sign in to comment.