- def obtain_error_messages_by_error_id(error_id)
- def obtain_error_messages_by_error_id(error_id, return_error_line = false) error_messages_by_error_id = [] error_messages = obtain_error_messages error_messages.each do |k, v| if ('build-pkg.' + build_pkg_error_id(k)) == error_id
line above avoid use '+' to build a string unless line by line you can use join or "str#{var}str" to build it
Thanks, Luan Shengde
error_messages_by_error_id += v.to_a
end error_messages_by_error_iderror_messages_by_error_id += return_error_line ? [k] : v.to_a end
-- 2.23.0