mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-19 11:29:41 -05:00
0585010274
A common case for io.Writer errors is during noms-log or noms-show when piped through head, i.e. "noms log ldb:/path/to:noms | head". noms-log handles this itself by recovering from the panic, but rather than porting this logic to noms-show, just make it so that you don't need to recover in the first place. This is similar to how errors from fmt.Println etc don't panic. Non-write errors (like crashes) will continue to panic.