From f4b9c5f55dde79f40bbe6b924562b74529e3e697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Moyne?= Date: Thu, 10 Aug 2023 03:06:41 -0700 Subject: [PATCH] Improve error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Noël Moyne --- server/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/stream.go b/server/stream.go index f399ceb46da..a0aa63f3eeb 100644 --- a/server/stream.go +++ b/server/stream.go @@ -475,7 +475,7 @@ func (a *Account) addStreamWithAssignment(config *StreamConfig, fsConfig *FileSt for _, st := range cfg.Mirror.SubjectTransforms { if st.Source != _EMPTY_ && !IsValidSubject(st.Source) { jsa.mu.Unlock() - return nil, fmt.Errorf("subject filter '%s' for the mirror %w", st.Source, ErrBadSubject) + return nil, fmt.Errorf("invalid subject transform source '%s' for the mirror: %w", st.Source, ErrBadSubject) } // check the transform, if any, is valid if st.Destination != _EMPTY_ {