Skip to content

Commit

Permalink
Fix typo in missing API key error message
Browse files Browse the repository at this point in the history
Thanks to Leon Entrup for reporting this. Close #33.
  • Loading branch information
alexisbernard committed Oct 7, 2024
1 parent 8c23dfe commit d4ecab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rorvswild.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def self.clock_milliseconds
def self.check
api_key = RorVsWild.agent.config[:api_key]
agent.client.instance_variable_set(:@http_unauthorized, false)
return puts "You API key is missing and has to be defined in config/rorvswild.yml." if !api_key || api_key.empty?
return puts "Your API key is missing and has to be defined in config/rorvswild.yml." if !api_key || api_key.empty?
puts case response = agent.client.post("/jobs", jobs: [{sections: [], name: "RorVsWild.check", runtime: 0}])
when Net::HTTPOK then "Connection to RorVsWild works fine !"
when Net::HTTPUnauthorized then "Wrong API key"
Expand Down

0 comments on commit d4ecab5

Please sign in to comment.