Effect CommunityEC
Effect Community2y ago
6 replies
kondaurovdev

Truncating ParseError Output to Display Only Initial Characters

I have a schema that describes an object which may contain a field with a very long value.

Is it possible to make the ParseError show not the entire original text of the source message, but only its beginning, for example?
I read that there is a type in Effect that allows hiding sensitive data from being printed to the console. I need a type that would output to the console, but only the first 50 characters of the text, for example.

The log message is too long
image.png
Was this page helpful?