From eecb0ea9a288c9c145a13b795cb192258ee47fa9 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 10:50:29 +0000 Subject: Raise an exception if the test-factory doesn't succeed. --- lib/custodian/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/parser.rb') diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index 7e45760..b17c53e 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -322,7 +322,7 @@ module Custodian job = Custodian::TestFactory.create( macro_expanded ) ret.push( job ) rescue => ex - puts "ERROR: #{ex}" + raise ArgumentError, "Parsing a line to a protocol test gave the error: #{ex}" return nil end end -- cgit v1.2.1