Skip to content

Commit

Permalink
added more informative exception output to cases of bad data
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorf committed Nov 2, 2023
1 parent ff10e5f commit 5600020
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ontologies_linked_data/monkeypatches/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def to_flex_hash(options = {}, &block)
hash, modified = embed_goo_objects_just_values(hash, k, v, options, &block)
rescue Exception => e
puts "Bad data found in submission: #{hash}"
puts "#{e.class}: #{e.message}\n#{e.backtrace.join("\n")}"
raise e
end

Expand Down

0 comments on commit 5600020

Please sign in to comment.