Skip to content

A platform for community discussion. Free, open, simple.

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

Jeff Wongf17e745fe38c
diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake
index e4ac9e7d6c9..be293fd1833 100644
--- a/lib/tasks/plugin.rake
+++ b/lib/tasks/plugin.rake
@@ -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'