rename the constructors for the various qerr.Error flavors

This commit is contained in:
Marten Seemann 2020-03-21 10:53:03 +07:00
parent 2f2583beb0
commit 6d61dccc2f
16 changed files with 69 additions and 69 deletions

View file

@ -81,7 +81,7 @@ type TransportParameters struct {
// Unmarshal the transport parameters
func (p *TransportParameters) Unmarshal(data []byte, sentBy protocol.Perspective) error {
if err := p.unmarshal(data, sentBy); err != nil {
return qerr.Error(qerr.TransportParameterError, err.Error())
return qerr.NewError(qerr.TransportParameterError, err.Error())
}
return nil
}