Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Use warn.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 24, 2011
1 parent bc890c6 commit 5c78c3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -4,8 +4,8 @@ require 'bundler'
begin
Bundler.setup(:development, :doc)
rescue Bundler::BundlerError => e
STDERR.puts e.message
STDERR.puts "Run `bundle install` to install missing gems"
warn e.message
warn "Run `bundle install` to install missing gems"
exit e.status_code
end

Expand Down
2 changes: 1 addition & 1 deletion lib/dm-visualizer/graphviz.rb
Expand Up @@ -5,7 +5,7 @@
rescue Gem::LoadError => e
raise(e)
rescue ::LoadError
STDERR.puts "GraphViz not available. Install it with: gem install ruby-graphviz"
warn "GraphViz not available. Install it with: gem install ruby-graphviz"
end

module DataMapper
Expand Down
2 changes: 1 addition & 1 deletion lib/dm-visualizer/project.rb
Expand Up @@ -307,7 +307,7 @@ def each_relationship
# The message to print.
#
def log(message)
STDERR.puts "dm-visualizer: #{message}"
warn "dm-visualizer: #{message}"
end

#
Expand Down

0 comments on commit 5c78c3d

Please sign in to comment.