mirror of
https://github.com/perkeep/perkeep.git
synced 2025-02-26 20:25:07 +00:00
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) {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user