Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-06-27 18:41:58 +0300
committerGabriel Mazetto <brodock@gmail.com>2017-06-27 18:48:04 +0300
commitb0f2861c3dd662a82ecbf535d1c259ad81df378b (patch)
treef7b99c9361af39fc6929657e9a578e14a49b0978 /lib/system_check
parent6b86ce75cf5b716370611f2bccea2b4590d7ce34 (diff)
Make the SimpleExecutor rescue exceptions in the executing Checks
Diffstat (limited to 'lib/system_check')
-rw-r--r--lib/system_check/simple_executor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system_check/simple_executor.rb b/lib/system_check/simple_executor.rb
index dc2d4643a01..e5986612908 100644
--- a/lib/system_check/simple_executor.rb
+++ b/lib/system_check/simple_executor.rb
@@ -75,6 +75,8 @@ module SystemCheck
check.show_error
end
+ rescue StandardError => e
+ $stdout.puts "Exception: #{e.message}".color(:red)
end
private