tidy and update related dependencies

Signed-off-by: xu yang <xyang@ciq.com>
This commit is contained in:
xu yang
2024-10-31 04:08:17 +00:00
committed by Jonathon Anderson
parent fececacefb
commit 82aaf9b9ec
5 changed files with 9 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
package node
import (
"fmt"
"errors"
"sort"
"strconv"
@@ -124,7 +124,7 @@ func (node *NodeConf) GetStorage() (stor types_3_4.Storage, err error, rep strin
}
report := stor.Validate(path.ContextPath{})
if report.IsFatal() {
err = fmt.Errorf(report.String())
err = errors.New(report.String())
}
rep = report.String()
return