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
|
@ -31,8 +31,7 @@ module Mastodon::CLI
|
|||
recount_status_stats(status)
|
||||
end
|
||||
else
|
||||
say("Unknown type: #{type}", :red)
|
||||
exit(1)
|
||||
fail_with_message "Unknown type: #{type}"
|
||||
end
|
||||
|
||||
say
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue