adjust error names

This commit is contained in:
Chris Lu
2019-01-05 19:52:38 -08:00
parent 9383c91eb1
commit 6b5d6bb5a6
3 changed files with 8 additions and 6 deletions

View File

@@ -131,7 +131,7 @@ func DeleteFilesAtOneVolumeServer(volumeServer string, fileIds []string) (ret []
}
for _, result := range ret {
if result.Error != "" && result.Error != "Not Found" {
if result.Error != "" && result.Error != "not found" {
return nil, fmt.Errorf("delete fileId %s: %v", result.FileId, result.Error)
}
}