Merge "Added missing var 'which' used in a fmt.Errorf"

This commit is contained in:
Brad Fitzpatrick 2013-10-06 06:47:07 +00:00 committed by Gerrit Code Review
commit 977c396927
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ func (c *syncCmd) storageFromParam(which storageType, val string) (blobserver.St
if looksLikePath(val) { if looksLikePath(val) {
disk, err := localdisk.New(val) disk, err := localdisk.New(val)
if err != nil { if err != nil {
return nil, fmt.Errorf("Interpreted --%v=%q as a local disk path, but got error: %v", val, err) return nil, fmt.Errorf("Interpreted --%v=%q as a local disk path, but got error: %v", which, val, err)
} }
return disk, nil return disk, nil
} }