Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 3004d37

Browse files
committed
fix node report
1 parent bc60c79 commit 3004d37

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src-colladmin/actions/zookeeper_action.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ def system_node(n)
109109

110110
def show_data(n)
111111
d = get_data(n)
112-
df = d.is_a?(Hash) ? "\n#{JSON.pretty_generate(d)}" : " #{d}"
112+
df = d.is_a?(Hash) ? "\n#{JSON.pretty_generate(d).encode('UTF-8')}" : " #{d.to_s.encode('UTF-8')}"
113113
@buf << df unless @buf.nil?
114+
rescue StandardError => e
115+
@buf << e
114116
end
115117

116118
def get_data(n)

0 commit comments

Comments
 (0)