serve ftp: Add error message if auth proxy fails #4394

This commit is contained in:
Nick Craig-Wood 2020-06-29 10:30:29 +01:00
parent 0031130111
commit 92cb21f0f2

View file

@ -261,7 +261,9 @@ func (s *server) CheckPasswd(user, pass string) (ok bool, err error) {
delete(s.pending, id) delete(s.pending, id)
s.pendingMu.Unlock() s.pendingMu.Unlock()
if d == nil { if d == nil {
return false, errors.Errorf("proxy login failed: failed to find pending Driver under ID %q", id) err := errors.Errorf("proxy login failed: failed to find pending Driver under ID %q", id)
fs.Errorf(nil, "Error %v", err)
return false, err
} }
d.vfs = VFS d.vfs = VFS
} else { } else {