Skip to content

Commit

Permalink
report json encoding error
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Dec 16, 2024
1 parent 9c6dc70 commit 85641dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-colladmin/actions/zookeeper_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ def get_data(n)

begin
JSON.parse(d.encode('UTF-8'), symbolize_names: true)
rescue JSON::ParserError
d
rescue StandardError => e
"#{e}: #{d}"
"\n #{e.class}:#{e}:\n #{d}"
end
end

Expand Down

0 comments on commit 85641dc

Please sign in to comment.