Skip to content

Commit

Permalink
Raise an exception if automation task system fails
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jan 4, 2024
1 parent 623fef0 commit 9dd56ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/changelog.rake
Expand Up @@ -9,7 +9,7 @@ namespace :changelog do
ref_type = :pull if args[:id]
path = Changelog::Entry.new(type: type, ref_id: args[:id], ref_type: ref_type).write
cmd = "git add #{path}"
system cmd
system cmd, exception: true
puts "Entry '#{path}' created and added to git index"
end
end
Expand All @@ -21,7 +21,7 @@ namespace :changelog do
Changelog.new.merge!.and_delete!
cmd = "git commit -a -m 'Update Changelog'"
puts cmd
system cmd
system cmd, exception: true
end

desc 'Check for no pending changelog entries'
Expand Down
4 changes: 2 additions & 2 deletions tasks/prof.rake
Expand Up @@ -14,7 +14,7 @@ namespace :prof do

path = args.fetch(:path, '.')
cmd = "exe/rubocop --profile #{path}"
system cmd
system cmd, exception: true
end

desc 'Run RuboCop on itself only if dump does not exist'
Expand All @@ -40,6 +40,6 @@ namespace :prof do
end
cmd = "stackprof #{dump_path} --walk --method '#{method}'"
puts cmd
system cmd
system cmd, exception: true
end
end

0 comments on commit 9dd56ef

Please sign in to comment.