engine: resources: Log some tftp errors
This was helpful in debugging.
This commit is contained in:
@@ -340,6 +340,7 @@ func (obj *TFTPServerRes) readHandler() func(string, io.ReaderFrom) error {
|
|||||||
handle, err = res.getContent()
|
handle, err = res.getContent()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
obj.init.Logf("could not get content for: %s", filename)
|
obj.init.Logf("could not get content for: %s", filename)
|
||||||
|
obj.init.Logf("error: %v", err)
|
||||||
// don't leak additional information to client!
|
// don't leak additional information to client!
|
||||||
return fmt.Errorf("could not get content for: %s", filename)
|
return fmt.Errorf("could not get content for: %s", filename)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user