serve ftp: Add error message if auth proxy fails #4394
This commit is contained in:
parent
0031130111
commit
92cb21f0f2
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ func (s *server) CheckPasswd(user, pass string) (ok bool, err error) {
|
|||
delete(s.pending, id)
|
||||
s.pendingMu.Unlock()
|
||||
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
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue