Skip to content

Commit

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

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

Expand Down

0 comments on commit 9c6dc70

Please sign in to comment.