error_list can be a list

root21 created

Change summary

lib/bandwidth_tn_order.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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