sanbornm / go-selfupdate

Enable your Go applications to self update
MIT License
1.53k stars 175 forks source link

Updater.fetchAndVerifyPatch error #29

Closed michilu closed 1 year ago

michilu commented 5 years ago

Hi guys,

I think better returns the error if return error in Updater.fetchAndVerifyPatch. My use case is looping retry update until success update, if fails update, catch the error.

Thanks!

sanbornm commented 1 year ago

The idea here is that if the bin patch fails it will keep going to grab the full binary. If that fails an error will be returned.