From 7bed89701d55adf75aba520a42a98c444c785cbb Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 28 Aug 2023 15:09:01 -0600 Subject: [PATCH] Made NewErrorSignal use fmt.Sprintf and tage variable args --- signal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signal.go b/signal.go index 9057800..3508fe4 100644 --- a/signal.go +++ b/signal.go @@ -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...), } }