diff options
Diffstat (limited to 'lib/api/validations/validators/untrusted_regexp.rb')
-rw-r--r-- | lib/api/validations/validators/untrusted_regexp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/validations/validators/untrusted_regexp.rb b/lib/api/validations/validators/untrusted_regexp.rb index ec623684e67..3ddea2bd9de 100644 --- a/lib/api/validations/validators/untrusted_regexp.rb +++ b/lib/api/validations/validators/untrusted_regexp.rb @@ -11,7 +11,7 @@ module API Gitlab::UntrustedRegexp.new(value) rescue RegexpError => e message = "is an invalid regexp: #{e.message}" - raise Grape::Exceptions::Validation, params: [@scope.full_name(attr_name)], message: message + raise Grape::Exceptions::Validation.new(params: [@scope.full_name(attr_name)], message: message) end end end |