Skip to content

Commit

Permalink
error(engine): fix duplicated rpc error name (#6950)
Browse files Browse the repository at this point in the history
close #6899
  • Loading branch information
maxshuang authored Sep 1, 2022
1 parent f9251d0 commit 822ce44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/servermaster/scheduler/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// ErrResourceNotFound indicates that a given resource requirement
// (usually a local file requirement) cannot be satisfied because
// the given resource could not be found.
var ErrResourceNotFound = rpcerror.Normalize[ResourceNotFoundError]()
var ErrResourceNotFound = rpcerror.Normalize[ResourceNotFoundError](rpcerror.WithName("RequiredResourceNotFoundError"))

// ResourceNotFoundError provides the details of an ErrResourceNotFound.
type ResourceNotFoundError struct {
Expand Down

0 comments on commit 822ce44

Please sign in to comment.