From a8f8d47a04cde53d37765f505eb8ed9f5c0b2384 Mon Sep 17 00:00:00 2001 From: narayana Date: Tue, 5 Apr 2022 11:55:33 +0530 Subject: [PATCH] capture the non json response --- src/Plivo/Resource/ResourceInterface.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plivo/Resource/ResourceInterface.cs b/src/Plivo/Resource/ResourceInterface.cs index 1f32aa8a..c2c87ff9 100755 --- a/src/Plivo/Resource/ResourceInterface.cs +++ b/src/Plivo/Resource/ResourceInterface.cs @@ -256,7 +256,7 @@ public static T ExecuteWithExceptionUnwrap (Func func) where T : class { } catch (AggregateException ex) { ex.Flatten (); if (ex.InnerExceptions[0] is Newtonsoft.Json.JsonReaderException){ - throw new PlivoValidationException ("Unexpected error occured. Please contact plivo support"); + throw new PlivoValidationException ("Unexpected error occured. Please contact plivo support. Exception is"+ ex.ToString()); } throw ex.InnerExceptions[0];