engine: resources: Log some tftp errors

This was helpful in debugging.
This commit is contained in:
James Shubin
2024-01-31 13:09:23 -05:00
parent 961370c43c
commit d0d6a4d1a1

View File

@@ -340,6 +340,7 @@ func (obj *TFTPServerRes) readHandler() func(string, io.ReaderFrom) error {
handle, err = res.getContent()
if err != nil {
obj.init.Logf("could not get content for: %s", filename)
obj.init.Logf("error: %v", err)
// don't leak additional information to client!
return fmt.Errorf("could not get content for: %s", filename)
}