timescale / timescaledb-backup

Other
35 stars 9 forks source link

Make error handling more go idiomatic #2

Closed davidkohn88 closed 4 years ago

davidkohn88 commented 4 years ago

Error handling should be passed mostly up to the main function, this uses the fmt.Errorf and errors.New to pass up errors so that deferred function calls etc are executed properly.