From ddf815d3790ef88e2c98fb9b0311a6e2c6a81cd0 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Mon, 4 Nov 2024 15:59:27 +0530 Subject: [PATCH] fix: comments addressed --- src/Utilities/Utils.res | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Utilities/Utils.res b/src/Utilities/Utils.res index 0a61af44..1fdb25f1 100644 --- a/src/Utilities/Utils.res +++ b/src/Utilities/Utils.res @@ -881,12 +881,11 @@ let arrayJsonToCamelCase = arr => { let formatException = exc => switch exc { | Exn.Error(obj) => - let (message, name, stack, fileName) = ( - Exn.message(obj), - Exn.name(obj), - Exn.stack(obj), - Exn.fileName(obj), - ) + let message = Exn.message(obj) + let name = Exn.name(obj) + let stack = Exn.stack(obj) + let fileName = Exn.fileName(obj) + if ( message->Option.isSome || name->Option.isSome ||