status-im / nim-confutils

Simplified handling of command line options and config files
Apache License 2.0
63 stars 16 forks source link

ignore exceptions while writing to stdout/stderr #79

Closed etan-status closed 1 year ago

etan-status commented 1 year ago

writeLine can fail with IOError, and styledWrite when using colors also with ValueError. To ensure that the control flow is unaffected, simply ignore those errors while writing human-readable output to fds.