summaryrefslogtreecommitdiff
path: root/lib/custodian/parser.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-15 08:27:15 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-15 08:27:15 +0000
commit265df51045f6aaaaa5f5456ce14ed63ea2f47010 (patch)
tree59c8c05dafc7b698def7f51a1f72aa2c9c01bd76 /lib/custodian/parser.rb
parent077b06319d012f6d237c171d25f3b7300da6b383 (diff)
Raise an exception on a bogus line - and test for that.
Diffstat (limited to 'lib/custodian/parser.rb')
-rwxr-xr-xlib/custodian/parser.rb3
1 files changed, 1 insertions, 2 deletions
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