mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
eventmanager: add support for data retention checks
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -635,8 +635,10 @@ func (c *scpCommand) readProtocolMessage() (string, error) {
|
||||
return command.String(), err
|
||||
}
|
||||
|
||||
// send an error message and close the channel
|
||||
//nolint:errcheck // we don't check write errors here, we have to close the channel anyway
|
||||
// sendErrorMessage sends an error message and close the channel
|
||||
// we don't check write errors here, we have to close the channel anyway
|
||||
//
|
||||
//nolint:errcheck
|
||||
func (c *scpCommand) sendErrorMessage(fs vfs.Fs, err error) {
|
||||
c.connection.channel.Write(errMsg)
|
||||
if fs != nil {
|
||||
|
||||
Reference in New Issue
Block a user