for root disks add additional information in the error log (#19177)

This commit is contained in:
Harshavardhana
2024-03-02 23:45:39 -08:00
committed by GitHub
parent a7577da768
commit 6d08af61a0
4 changed files with 15 additions and 14 deletions
+3
View File
@@ -1330,6 +1330,9 @@ func registerStorageRESTHandlers(router *mux.Router, endpointServerPools Endpoin
if err != nil {
// if supported errors don't fail, we proceed to
// printing message and moving forward.
if errors.Is(err, errDriveIsRoot) {
err = fmt.Errorf("major: %v: minor: %v: %w", xl.major, xl.minor, err)
}
logFatalErrs(err, endpoint, false)
return false
}