Made NewErrorSignal use fmt.Sprintf and tage variable args

gql_cataclysm v0.4.0
noah metz 2023-08-28 15:09:01 -06:00
parent ba344bddcf
commit 7bed89701d
1 changed files with 2 additions and 2 deletions

@ -196,10 +196,10 @@ func (signal *ErrorSignal) String() string {
return string(ser)
}
func NewErrorSignal(req_id uuid.UUID, err string) Signal {
func NewErrorSignal(req_id uuid.UUID, fmt_string string, args ...interface{}) Signal {
return &ErrorSignal{
NewRespSignal(req_id, ErrorSignalType, Direct),
err,
fmt.Sprintf(fmt_string, args...),
}
}