Permalink
Browse files

Fix warning message when default configuration is used

  • Loading branch information...
1 parent 88c9676 commit 2cf0a7ee477edbf79b0d3f8cc3778c7bba5c25f4 @icy icy committed Sep 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/trocla.rb
View
2 lib/trocla.rb
@@ -111,6 +111,7 @@ def config
def read_config
if @config_file.nil?
+ STDERR.puts "Trocla: using default configuration #{f_config}. Use option -c (--config) to overwrite"
default_config
else
raise "Configfile #{@config_file} does not exist!" unless File.exists?(@config_file)
@@ -121,7 +122,6 @@ def read_config
def default_config
require 'yaml'
f_config = File.expand_path(File.join(File.dirname(__FILE__),'trocla','default_config.yaml'))
- STDERR.puts "Trocla: using default configuration #{f_config}. Use option -c (--config) to overwrite"
YAML.load(File.read(f_config))
end

0 comments on commit 2cf0a7e

Please sign in to comment.