doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

fix: don't panic when piping #82

Closed Witcher01 closed 1 year ago

Witcher01 commented 2 years ago

Piping stdout to something like head, which closes rbw's stdout before it's done writing everything, causes a panic. The panic is circumvented by using writeln! instead of println! and ignoring the error when it's of kind BrokenPipe. Closes #79

svenstaro commented 2 years ago

@doy could you take a look at this?

svenstaro commented 2 years ago

@doy ping