message is deliberately body-free. Clockify echoes submitted values back
in its error text, so a message carrying the response body turns the routine
log(err.message) into a way to leak whatever the caller sent. The full body
stays on body, and clockifyErrorDetail (@apet97/clockify115-sdk/errors) is the
opt-in combined string for a surface whose reader is the submitter. Do not put
the body back here.
A non-2xx response from the Clockify API.
messageis deliberately body-free. Clockify echoes submitted values back in its error text, so a message carrying the response body turns the routinelog(err.message)into a way to leak whatever the caller sent. The full body stays onbody, andclockifyErrorDetail(@apet97/clockify115-sdk/errors) is the opt-in combined string for a surface whose reader is the submitter. Do not put the body back here.