fix(inputs.http_listener_v2): Wrap timestamp parsing error messages (#15239)

This commit is contained in:
Joshua Powers 2024-04-29 03:46:38 -06:00 committed by GitHub
parent c7446f74f1
commit 1e5fdb6d07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -176,9 +176,8 @@ func (p *Parser) parseCriticalPath(input []byte) ([]telegraf.Metric, error) {
var err error
timestamp, err = internal.ParseTimestamp(c.TimestampFormat, result.String(), c.Location)
if err != nil {
return nil, err
return nil, fmt.Errorf("unable to parse timestamp %q: %w", result.String(), err)
}
}
}