Improve no such node error messages

This commit is contained in:
Jakob Borg
2013-12-30 20:55:33 -05:00
parent af3e64a5a7
commit 2f660aff7a
2 changed files with 2 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ func (m *Model) pullFile(name string) error {
m.RUnlock()
if len(nodeIDs) == 0 {
return errNoSuchNode
return fmt.Errorf("%s: no connected nodes with file available", name)
}
filename := path.Join(m.dir, name)