mirror of https://github.com/perkeep/perkeep.git
Merge "Added missing var 'which' used in a fmt.Errorf"
This commit is contained in:
commit
977c396927
|
@ -155,7 +155,7 @@ func (c *syncCmd) storageFromParam(which storageType, val string) (blobserver.St
|
|||
if looksLikePath(val) {
|
||||
disk, err := localdisk.New(val)
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue