algolia / cli

🔍 Algolia’s official CLI devtool
https://www.algolia.com/doc/tools/cli
MIT License
101 stars 26 forks source link

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

Closed Nagriar closed 1 year ago

Nagriar commented 1 year ago

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.