We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8534ee1 commit c2a6f5dCopy full SHA for c2a6f5d
core/resource.go
@@ -285,8 +285,14 @@ func (r *Resource) AddProtos(protos []Proto) error {
285
protoPath := filepath.Join(BasePath, r.clientConn.Target())
286
err := os.MkdirAll(protoPath, 0777)
287
if os.IsExist(err) {
288
- os.RemoveAll(protoPath)
+ err = os.RemoveAll(protoPath)
289
+ if err != nil {
290
+ return err
291
+ }
292
err = os.MkdirAll(protoPath, 0777)
293
294
295
296
} else if err != nil {
297
return err
298
}
0 commit comments