Display existing symlink errors as warnings

calls
bodqhrohro 4 years ago
parent 33e564c62e
commit a435a0a556

@ -264,7 +264,12 @@ func (c *Client) updateFile(update *client.UpdateFile) {
),
)
if err != nil {
log.Errorf("Error creating symlink: %v", err)
linkErr := err.(*os.LinkError)
if linkErr.Err.Error() == "file exists" {
log.Warn(err.Error())
} else {
log.Errorf("Error creating symlink: %v", err)
}
}
}

Loading…
Cancel
Save