exe/git-conform in git-conform-1.1.0 vs exe/git-conform in git-conform-1.2.1

- old
+ new

@@ -55,26 +55,20 @@ end end nil end -unless repo - STDERR.puts "fatal: Not a git repository (or any of the parent directories): #{Dir.pwd}" - exit(-1) -end +repo || abort("fatal: Not a git repository (or any of the parent directories): #{Dir.pwd}") if options[:files] unless (files = repo.files(type: :text)).empty? STDOUT.puts files.sort.join("\n") end exit(0) end -unless repo.git_conform_enabled? - STDERR.puts "fatal: unable to read config file '#{repo.git_conform_path}': No such file or directory" - exit(-1) -end +repo.git_conform_enabled? || abort("fatal: unable to read config file '#{repo.git_conform_path}': No such file or directory") if options[:list] unless (checkers = repo.conformity_checkers).empty? STDOUT.puts checkers.sort.join("\n") end @@ -83,11 +77,10 @@ if options[:verify] begin repo.verify rescue NameError - STDERR.puts "fatal: #{$ERROR_INFO.message}" - exit(-1) + abort "fatal: #{$ERROR_INFO.message}" end exit(0) end if options[:check]