mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
ssh commands: return better error messages
This improve the fix for #171 and return better error message for SSH commands other than SCP too
This commit is contained in:
@@ -101,7 +101,7 @@ func (c *Connection) Remove(name string) error {
|
||||
|
||||
if fi.IsDir() && fi.Mode()&os.ModeSymlink != os.ModeSymlink {
|
||||
c.Log(logger.LevelDebug, "cannot remove %#v is not a file/symlink", p)
|
||||
return c.GetGenericError()
|
||||
return c.GetGenericError(nil)
|
||||
}
|
||||
return c.RemoveFile(p, name, fi)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user