X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fconfig.rb;h=a863c5244748dce6852d14da22c1a4a0387def7b;hb=8c45acb731d8ba8bc07f0934af2d4aeda637b155;hp=c974c78f2dd08b0137f04e67fdf034f0aa3d5495;hpb=da24f0f90c86a399a716d90c645ab921d03c5f51;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index c974c78f..a863c524 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -316,7 +316,7 @@ module Irc @@config.update newconfig return rescue - $stderr.puts "failed to read conf.yaml: #{$!}" + error "failed to read conf.yaml: #{$!}" end end # if we got here, we need to run the first-run wizard @@ -336,9 +336,9 @@ module Irc File.rename("#{@@bot.botclass}/conf.yaml.new", "#{@@bot.botclass}/conf.yaml") rescue => e - $stderr.puts "failed to write configuration file conf.yaml! #{$!}" - debug "#{e.class}: #{e}" - debug e.backtrace.join("\n") + error "failed to write configuration file conf.yaml! #{$!}" + error "#{e.class}: #{e}" + error e.backtrace.join("\n") end end