aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
Diffstat (limited to 'telegram')
-rw-r--r--telegram/handlers.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go
index 847bac8..aaa1e3d 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -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)
+ }
}
}