File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,10 @@ func GetRecoverStorage(c *gin.Context) {
71
71
}
72
72
if cf ["type" ] == "drive" && cf ["username" ] == dmap ["username" ] {
73
73
c .String (200 , `<p>The same configuration has been added</p><script>window.close()</script>` )
74
- service .MyService .Storage ().CheckAndMountByName (cf ["username" ])
74
+ err := service .MyService .Storage ().CheckAndMountByName (v )
75
+ if err != nil {
76
+ logger .Error ("check and mount by name error: " , zap .Error (err ), zap .Any ("name" , cf ["username" ]))
77
+ }
75
78
notify ["status" ] = "warn"
76
79
notify ["message" ] = "The same configuration has been added"
77
80
service .MyService .Notify ().SendNotify ("casaos:file:recover" , notify )
@@ -147,7 +150,11 @@ func GetRecoverStorage(c *gin.Context) {
147
150
}
148
151
if cf ["type" ] == "dropbox" && cf ["username" ] == dmap ["username" ] {
149
152
c .String (200 , `<p>The same configuration has been added</p><script>window.close()</script>` )
150
- service .MyService .Storage ().CheckAndMountByName (cf ["username" ])
153
+ err := service .MyService .Storage ().CheckAndMountByName (v )
154
+ if err != nil {
155
+ logger .Error ("check and mount by name error: " , zap .Error (err ), zap .Any ("name" , cf ["username" ]))
156
+ }
157
+
151
158
notify ["status" ] = "warn"
152
159
notify ["message" ] = "The same configuration has been added"
153
160
service .MyService .Notify ().SendNotify ("casaos:file:recover" , notify )
You can’t perform that action at this time.
0 commit comments