Patches item #27681, was opened at 2010-01-11 15:16 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=577&aid=27681&group_id=126
Category: `gem` commands (other) Group: None Status: Open Resolution: None Priority: 3 Submitted By: Caio Chassot (cchassot) Assigned to: Nobody (None) Summary: gem which should output to strerr and exit > 0 when no path is found Initial Comment: diff --git a/trunk/lib/rubygems/commands/which_command.rb b/trunk/lib/rubygems/commands/which_command.rb index 7c2d188..0ae9a36 100644 --- a/trunk/lib/rubygems/commands/which_command.rb +++ b/trunk/lib/rubygems/commands/which_command.rb @@ -52,7 +52,8 @@ class Gem::Commands::WhichCommand < Gem::Command paths = find_paths arg, dirs if paths.empty? then - say "Can't find ruby library file or shared library #{arg}" + alert_error "Can't find ruby library file or shared library #{arg}" + raise Gem::SystemExitException, 1 else say paths end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=577&aid=27681&group_id=126 _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers