Display existing symlink errors as warnings
This commit is contained in:
parent
33e564c62e
commit
a435a0a556
|
@ -264,9 +264,14 @@ func (c *Client) updateFile(update *client.UpdateFile) {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
linkErr := err.(*os.LinkError)
|
||||||
|
if linkErr.Err.Error() == "file exists" {
|
||||||
|
log.Warn(err.Error())
|
||||||
|
} else {
|
||||||
log.Errorf("Error creating symlink: %v", err)
|
log.Errorf("Error creating symlink: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Client) updateAuthorizationState(update *client.UpdateAuthorizationState) {
|
func (c *Client) updateAuthorizationState(update *client.UpdateAuthorizationState) {
|
||||||
switch update.AuthorizationState.AuthorizationStateType() {
|
switch update.AuthorizationState.AuthorizationStateType() {
|
||||||
|
|
Loading…
Reference in a new issue