Skip to content

Commit

Permalink
fix: identity removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja committed Oct 30, 2024
1 parent db7d551 commit 4fd172d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Utilities/Utils.res
Original file line number Diff line number Diff line change
Expand Up @@ -888,16 +888,16 @@ let formatException = exc =>
Exn.fileName(obj),
)
[
("message", message->Identity.anyTypeToJson),
("type", name->Identity.anyTypeToJson),
("stack", stack->Identity.anyTypeToJson),
("fileName", fileName->Identity.anyTypeToJson),
("message", message->Option.getOr("Unknown Error")->JSON.Encode.string),
("type", name->Option.getOr("Unknown")->JSON.Encode.string),
("stack", stack->Option.getOr("Unknown")->JSON.Encode.string),
("fileName", fileName->Option.getOr("Unknown")->JSON.Encode.string),
]
| _ => [
("message", "Unknown error"->Identity.anyTypeToJson),
("type", "Unknown"->Identity.anyTypeToJson),
("stack", "Unknown"->Identity.anyTypeToJson),
("fileName", "Unknown"->Identity.anyTypeToJson),
("message", "Unknown error"->JSON.Encode.string),
("type", "Unknown"->JSON.Encode.string),
("stack", "Unknown"->JSON.Encode.string),
("fileName", "Unknown"->JSON.Encode.string),
]
}->getJsonFromArrayOfJson

Expand Down

0 comments on commit 4fd172d

Please sign in to comment.