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 Claire
parent 9636fc22cc
commit d2f1767b81

View File

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