Commit 57b699cb authored by Ivar Derksen's avatar Ivar Derksen
Browse files

Fix: load logs fails when updating if the file is empty

parent c0c9f555
......@@ -46,8 +46,11 @@ var clientUpdates = []func(client *Client) error{
func(client *Client) error {
var logs []*LogEntry
var err error
// If loading logs fails, the logs file is likely empty and then there are no log entries to update
// Therefore throw away the error and mark the update as successful.
if err =, logsFile); err != nil {
return err
return nil
// Open one bolt transaction to process all our log entries in
err = *bbolt.Tx) error {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment