fix error message for package gtrace (#2103)

This commit is contained in:
John Guo
2022-08-31 19:53:21 +08:00
committed by GitHub
parent a0619f7ff0
commit c866b5005f

View File

@ -153,7 +153,7 @@ func WithTraceID(ctx context.Context, traceID string) (context.Context, error) {
return ctx, gerror.WrapCodef(
gcode.CodeInvalidParameter,
err,
`invalid custom traceID "%s", a traceID string should be composed with [0-9a-z] and fixed length 32`,
`invalid custom traceID "%s", a traceID string should be composed with [0-f] and fixed length 32`,
traceID,
)
}