Fix ArgumentError of tootctl upgrade storage-schema (#36914)

This commit is contained in:
Shugo Maeda 2025-11-17 22:34:20 +09:00 committed by GitHub
parent 72c582e7e5
commit 04c566e2e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,12 +123,12 @@ module Mastodon::CLI
progress.log("Moving #{previous_path} to #{upgraded_path}") if options[:verbose]
begin
move_previous_to_upgraded
move_previous_to_upgraded(previous_path, upgraded_path)
rescue => e
progress.log(pastel.red("Error processing #{previous_path}: #{e}"))
success = false
remove_directory
remove_directory(upgraded_path)
end
end