Skip to content

Commit

Permalink
added additional validation to identify
Browse files Browse the repository at this point in the history
  • Loading branch information
lluft committed Oct 5, 2017
1 parent f1ab9ba commit fdec4ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/castle/commands/identify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def validate!(options)
raise Castle::InvalidParametersError, "#{key} is missing or empty"
end

# check for properties
if options[:properties]
raise Castle::InvalidParametersError,
'properties are not supported in identify calls'
end
end
end
end
Expand Down

0 comments on commit fdec4ab

Please sign in to comment.