X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/df9e166a5ffc4aa79658bec1a5d552a3b413f0d8..466e71eb74d1323dc79c8db68d74c5e31e789652:/services/api/lib/record_filters.rb diff --git a/services/api/lib/record_filters.rb b/services/api/lib/record_filters.rb index 350c3802fc..eb8d09b74c 100644 --- a/services/api/lib/record_filters.rb +++ b/services/api/lib/record_filters.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + # Mixin module providing a method to convert filters into a list of SQL # fragments suitable to be fed to ActiveRecord #where. # @@ -126,6 +130,8 @@ module RecordFilters end end cond_out << cond.join(' OR ') + else + raise ArgumentError.new("Invalid operator '#{operator}'") end end conds_out << cond_out.join(' OR ') if cond_out.any?