Skip to content

fix(cli): check error when writing on the output#122

Merged
clemfromspace merged 2 commits into
mainfrom
check-write-error
Apr 26, 2023
Merged

fix(cli): check error when writing on the output#122
clemfromspace merged 2 commits into
mainfrom
check-write-error

Conversation

@Nagriar
Copy link
Copy Markdown
Member

@Nagriar Nagriar commented Apr 25, 2023

Summary

Check error when writing on the output: I dumped a large index on a disk full and the cli didn't return an error.

I only added error handling for the calls without check on IO.IsStdoutTTY or using IO.ErrOut.

Copy link
Copy Markdown
Contributor

@clemfromspace clemfromspace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@clemfromspace clemfromspace merged commit 3a10e03 into main Apr 26, 2023
@clemfromspace clemfromspace deleted the check-write-error branch August 23, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants