Skip to content

Commit

Permalink
Improve error message when during event creation
Browse files Browse the repository at this point in the history
Now the error message explains exactly what is happening.
  • Loading branch information
danidoni committed Sep 21, 2023
1 parent b49bd62 commit 8de5f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/event/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def check_left_attribs(attribs)
na = []
attribs.keys.each { |k| na << k.to_s }
logger.debug "LEFT #{self.class.name} payload_keys :#{na.sort.join(', :')}"
raise "LEFT #{self.class.name} payload_keys :#{na.sort.join(', :')} # #{attribs.inspect}"
raise "Unexpected payload_keys :#{na.sort.join(', :')} (#{attribs.inspect}) provided during '#{self.class.name}' event creation. "
end

def set_payload(attribs, keys)
Expand Down

0 comments on commit 8de5f54

Please sign in to comment.