From f17e745fe38cef65da01fe3b818735eb1156b13e Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Tue, 16 Feb 2021 09:50:27 -1000 Subject: [PATCH] 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 --- lib/tasks/plugin.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'