lib/git/duet/author_mapper.rb in git-duet-0.2.0 vs lib/git/duet/author_mapper.rb in git-duet-0.3.0

- old
+ new

@@ -51,11 +51,11 @@ 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}") - raise Git::Duet::ScriptDieError.new(8) + raise Git::Duet::ScriptDieError, 8 end def author_map @author_map ||= (cfg['authors'] || cfg['pairs']) end @@ -74,8 +74,8 @@ def cfg @cfg ||= YAML.load(IO.read(authors_file)) rescue StandardError => e $stderr.puts("git-duet: Missing or corrupt authors file: #{e.message}") - raise Git::Duet::ScriptDieError.new(3) + raise Git::Duet::ScriptDieError, 3 end end