From 8f13c6078d6aac3d53d755d27c4450f97fdd83bd Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 15 Nov 2012 08:27:15 +0000 Subject: Raise an exception on a bogus line - and test for that. --- lib/custodian/parser.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index 77d9c98..5556da0 100755 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -439,8 +439,7 @@ class MonitorConfig ret else - puts "Unknown line: '#{line}'" - exit( 0 ) + raise ArgumentError, "Unknown line: '#{line}'" end end -- cgit v1.2.1