lib/git/duet/author_mapper.rb in git-duet-0.1.2 vs lib/git/duet/author_mapper.rb in git-duet-0.1.3
- old
+ new
@@ -46,11 +46,11 @@
end
def email_from_template(initials, author, username)
return ERB.new(email_template).result(binding)
rescue StandardError => e
- STDERR.puts("git-duet: email template rendering error: #{e.message}")
+ $stderr.puts("git-duet: email template rendering error: #{e.message}")
raise Git::Duet::ScriptDieError.new(8)
end
def author_map
@author_map ||= (cfg['authors'] || cfg['pairs'])
@@ -69,9 +69,9 @@
end
def cfg
@cfg ||= YAML.load(IO.read(@authors_file))
rescue StandardError => e
- STDERR.puts("git-duet: Missing or corrupt authors file: #{e.message}")
+ $stderr.puts("git-duet: Missing or corrupt authors file: #{e.message}")
raise Git::Duet::ScriptDieError.new(3)
end
end