diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-28 12:16:23 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-28 12:16:23 +0200 |
commit | 2577ff7fd656f301c4b1909f0a1c358c8c30a614 (patch) | |
tree | a7c04e89e47df5610fdd189597c58d48f9075e76 /lib/gitlab/plugin.rb | |
parent | 4eed9a12216296709306ce29faf607d8aed2a913 (diff) | |
download | gitlab-ce-2577ff7fd656f301c4b1909f0a1c358c8c30a614.tar.gz |
Refactor plugins feature and make some doc improvements
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab/plugin.rb')
-rw-r--r-- | lib/gitlab/plugin.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/gitlab/plugin.rb b/lib/gitlab/plugin.rb index 96332362a4c..0d1cb16b378 100644 --- a/lib/gitlab/plugin.rb +++ b/lib/gitlab/plugin.rb @@ -18,15 +18,9 @@ module Gitlab end exit_status = result.status&.exitstatus - - unless exit_status.zero? - Rails.logger.error("Plugin Error => #{file}: #{result.stderr}") - end - - exit_status.zero? + [exit_status.zero?, result.stderr] rescue => e - Rails.logger.error("Plugin Error => #{file}: #{e.message}") - false + [false, e.message] end end end |