Skip to content

Commit

Permalink
Fixed incorrect log entry
Browse files Browse the repository at this point in the history
Fixes #20

Also updated spec to remove warning from rspec

Fixes #21
  • Loading branch information
robbavey committed Jul 20, 2018
1 parent 589a0f2 commit 4cede0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logstash/inputs/exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def register
@io = nil

if (@interval.nil? && @schedule.nil?) || (@interval && @schedule)
raise LogStash::ConfigurationError, "jdbc input: either 'interval' or 'schedule' option must be defined."
raise LogStash::ConfigurationError, "exec input: either 'interval' or 'schedule' option must be defined."
end
end # def register

Expand Down
2 changes: 1 addition & 1 deletion spec/inputs/exec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
context "with an invalid config" do
let(:input) { described_class.new("command" => "ls") }
it "should raise error" do
expect {input.register}.to raise_error
expect {input.register}.to raise_error(LogStash::ConfigurationError)
end
end
end
Expand Down

0 comments on commit 4cede0b

Please sign in to comment.