From 593089f3bbfc8c5f0be231edcf55d2520424d8a2 Mon Sep 17 00:00:00 2001 From: thatguysimon Date: Sun, 9 Jan 2022 19:35:17 +0200 Subject: [PATCH] Make error details public --- lib/oktakit/error.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oktakit/error.rb b/lib/oktakit/error.rb index 5ea9f4d..bdd69c7 100644 --- a/lib/oktakit/error.rb +++ b/lib/oktakit/error.rb @@ -48,12 +48,12 @@ def errors end end - private - def data @data ||= parse_data end + private + def parse_data body = @response[:body] return if body.empty?