Skip to content

Commit

Permalink
fix error output
Browse files Browse the repository at this point in the history
  • Loading branch information
mlintern committed Aug 22, 2024
1 parent b1e4350 commit 71cab3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions grit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Grit Class
class Grit
VERSION = "2024.8.21"
VERSION = "2024.8.22"
THREAD_COUNT = ENV["GRIT_THREAD_COUNT"] || 8
DASH_COUNT = 40

Expand Down Expand Up @@ -288,14 +288,16 @@ def remove_repository(name)
###
def perform(git_task, repo_name)
begin
output = Subprocess.check_output(["git",git_task], cwd: repo_name)
puts "-" * DASH_COUNT
puts "# #{repo_name.upcase} -- git #{git_task}" unless repo_name.nil?
output = Subprocess.check_output(["git",git_task], cwd: repo_name)
puts output
puts "-" * DASH_COUNT
puts ""
rescue Subprocess::NonZeroExit => e
puts e.message
puts "-" * DASH_COUNT
puts ""
end
end

Expand Down

0 comments on commit 71cab3b

Please sign in to comment.