DEV: log rake plugin:update_all plugin_path on error (#12100)

* DEV: log rake plugin:update_all plugin_path on error

Allows a dev to know which plugin was failing to update
This commit is contained in:
Jeff Wong 2021-02-16 09:50:27 -10:00 committed by GitHub
parent 94036a6f49
commit f17e745fe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ task 'plugin:update', :plugin do |t, args|
if has_local_main
update_status = system("git -C '#{plugin_path}' checkout main")
abort('Unable to pull latest version of plugin') unless update_status
abort("Unable to pull latest version of plugin #{plugin_path}") unless update_status
else
`git -C '#{plugin_path}' branch -m master main`
end
@ -104,7 +104,7 @@ task 'plugin:update', :plugin do |t, args|
end
update_status = system("git -C '#{plugin_path}' pull")
abort('Unable to pull latest version of plugin') unless update_status
abort("Unable to pull latest version of plugin #{plugin_path}") unless update_status
end
desc 'pull compatible plugin versions for all plugins'