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:
Diffstat (limited to 'lib/gitlab/ci/config/yaml/result.rb')
-rw-r--r--lib/gitlab/ci/config/yaml/result.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/yaml/result.rb b/lib/gitlab/ci/config/yaml/result.rb
index 6b53adc3a57..6b20eeae203 100644
--- a/lib/gitlab/ci/config/yaml/result.rb
+++ b/lib/gitlab/ci/config/yaml/result.rb
@@ -5,11 +5,12 @@ module Gitlab
class Config
module Yaml
class Result
- attr_reader :error
+ attr_reader :error, :error_class
- def initialize(config: nil, error: nil)
+ def initialize(config: nil, error: nil, error_class: nil)
@config = Array.wrap(config)
@error = error
+ @error_class = error_class
end
def valid?