Skip to content

Commit

Permalink
engine: resources: Log more info about tftp errors
Browse files Browse the repository at this point in the history
This helps for debugging this kind of issue:
pin/tftp#41 (comment)
  • Loading branch information
LuausDalmolin authored and purpleidea committed May 26, 2022
1 parent c90ca39 commit 0ef3914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/resources/tftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (obj *TftpServerRes) readHandler() func(string, io.ReaderFrom) error {

n, err := rf.ReadFrom(handle)
if err != nil {
obj.init.Logf("could not read %s", filename)
obj.init.Logf("could not read %s, error: %+v", filename, err)
// don't leak additional information to client!
return fmt.Errorf("could not read: %s", filename)

Expand Down

0 comments on commit 0ef3914

Please sign in to comment.