From c3fe29b1b622795ea1bea75b3e19da4cae8b3161 Mon Sep 17 00:00:00 2001 From: root21 Date: Tue, 31 Jan 2023 11:11:23 -0600 Subject: [PATCH] error_list can be a list --- lib/bandwidth_tn_order.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bandwidth_tn_order.rb b/lib/bandwidth_tn_order.rb index 2acbd6117c544bbfea5dccb8ab9ec7a0ce4e4b47..ac8054fa4a839b237a1d52e637a8c7177294b585 100644 --- a/lib/bandwidth_tn_order.rb +++ b/lib/bandwidth_tn_order.rb @@ -46,7 +46,7 @@ class BandwidthTNOrder end def error_description - @order[:error_list]&.dig(:error, :description) + [@order[:error_list]].flatten.first&.dig(:error, :description) end def poll