Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
fix QueryError raising in Openvas::Client
Browse files Browse the repository at this point in the history
Fixes the format typo when raising QuerryError in Openvas::Client
  • Loading branch information
fakenine authored and fwininger committed Feb 26, 2018
1 parent 732613e commit 6615510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openvas/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def self.version
def self.query(data)
res = Nokogiri::XML(send_receive(data.to_xml))

raise QueryError 'Unknown query error' unless res.at_xpath('//@status')&.value == '200'
raise QueryError, 'Unknown query error' unless res.at_xpath('//@status')&.value == '200'

res
end
Expand Down

0 comments on commit 6615510

Please sign in to comment.