Skip to content

Commit

Permalink
stderr where warnings are due
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Oct 27, 2011
1 parent 75404cb commit 778b3fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/hub/commands.rb
Expand Up @@ -342,7 +342,7 @@ def fork(args)
# can't do anything without token and original owner name
if github_user && github_token && repo_owner
if repo_exists?(github_user)
puts "#{github_user}/#{repo_name} already exists on GitHub"
warn "#{github_user}/#{repo_name} already exists on GitHub"
else
fork_repo
end
Expand Down Expand Up @@ -391,7 +391,7 @@ def create(args)
repo_with_owner = "#{owner}/#{new_repo_name}"

if repo_exists?(owner, new_repo_name)
puts "#{repo_with_owner} already exists on GitHub"
warn "#{repo_with_owner} already exists on GitHub"
action = "set remote origin"
else
action = "created repository"
Expand Down Expand Up @@ -516,7 +516,7 @@ def compare(args)
def hub(args)
return help(args) unless args[1] == 'standalone'
require 'hub/standalone'
puts Hub::Standalone.build
$stdout.puts Hub::Standalone.build
exit
rescue LoadError
abort "hub is running in standalone mode."
Expand Down Expand Up @@ -699,7 +699,7 @@ def browse_command(args)
# Returns the terminal-formatted manpage, ready to be printed to
# the screen.
def hub_manpage
return "** Can't find groff(1)" unless command?('groff')
abort "** Can't find groff(1)" unless command?('groff')

require 'open3'
out = nil
Expand Down

0 comments on commit 778b3fb

Please sign in to comment.