tslog icon indicating copy to clipboard operation
tslog copied to clipboard

Question: Is it possible to overwrite formatErrorMessage?

Open BradHarrington opened this issue 2 months ago • 0 comments

Currently, if the object being logged is an Error and the type is "pretty" then the message resulting from formatErrorMessage() doesn't stringify any objects that are attributes of the Error. You just get [object Object].

How can I overwrite formatErrorMessage() to control what the resulting string looks like?

BradHarrington avatar Nov 14 '25 16:11 BradHarrington