Log error cause property#19
Conversation
Greptile SummaryThis PR fixes a gap in the logging serialization layer where the Key changes:
One thing to be aware of: the guard Confidence Score: 5/5
Important Files Changed
Reviews (1): Last reviewed commit: "log error cause property" | Re-trigger Greptile |
There was a problem hiding this comment.
Code Review
This pull request introduces a new indentLines utility and enhances the serializeValue function to recursively serialize the cause property of Error objects. The feedback suggests improving the robustness of the cause check by explicitly checking for undefined to ensure falsy values like 0 or false are correctly processed.
The
causeproperty of Errors was not logged. This property is used by the retry function from@std/asyncto report the original error when a retry limit is hit.