Handle CLI failure exit status at the top-level script (#28322)
This commit is contained in:
parent
881e8c113c
commit
0e0a94f483
27 changed files with 150 additions and 320 deletions
|
@ -25,10 +25,7 @@ module Mastodon::CLI
|
|||
end
|
||||
|
||||
def parallelize_with_progress(scope)
|
||||
if options[:concurrency] < 1
|
||||
say('Cannot run with this concurrency setting, must be at least 1', :red)
|
||||
exit(1)
|
||||
end
|
||||
fail_with_message 'Cannot run with this concurrency setting, must be at least 1' if options[:concurrency] < 1
|
||||
|
||||
reset_connection_pools!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue