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
purpleidea committed Jan 4, 2020
1 parent 2648fb1 commit f073872
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 f073872

Please sign in to comment.