mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 21:35:40 +08:00
Make sure errors are logged on mdm endpoints (#871)
This commit is contained in:
@@ -138,8 +138,7 @@ func encodeResponse(ctx context.Context, w http.ResponseWriter, response interfa
|
||||
}
|
||||
|
||||
if e, ok := response.(failer); ok && e.Failed() != nil {
|
||||
encodeError(ctx, e.Failed(), w)
|
||||
return nil
|
||||
return e.Failed()
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
||||
Reference in New Issue
Block a user