Changed warning message as recommended by @reitermarkus

This commit is contained in:
Alexey Alekhin 2017-08-31 03:03:00 +02:00
parent 6ac0b9881d
commit 68dd0ac918
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ module Hbc
extension: "rb",
)
rescue GitHub::Error => error
opoo "Online search failed: #{error}\n"
opoo "Error searching on GitHub: #{error}\n"
[]
end
matches.map do |match|

View File

@ -30,7 +30,7 @@ describe Hbc::CLI::Search, :cask do
local-caffeine
local-transmission
EOS
.and output(/^Warning: Online search failed: reason/).to_stderr
.and output(/^Warning: Error searching on GitHub: reason/).to_stderr
end
it "shows that there are no Casks matching a search term that did not result in anything" do