From 367d5975bd09321be63bc730ccdb73b401575830 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 11 Apr 2026 02:13:44 +0100 Subject: [PATCH] fix empty filter list error message, canvas name was added: https://github.com/obsproject/obs-websocket/blob/1fcb95b15aa88b1b7e9bda3f9c8650e314377169/src/requesthandler/rpc/Request.cpp#L256-L257 --- filter_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/filter_test.go b/filter_test.go index 97fb251..90b7da8 100644 --- a/filter_test.go +++ b/filter_test.go @@ -58,9 +58,12 @@ func TestFilterListEmpty(t *testing.T) { if err == nil { t.Fatal("Expected error for non-existent source, but got none") } - if !strings.Contains(err.Error(), "No source was found by the name of `NonExistentSource`.") { + if !strings.Contains( + err.Error(), + "No source was found by the name of `NonExistentSource` within the canvas `Main`.", + ) { t.Fatalf( - "Expected error to contain 'No source was found by the name of `NonExistentSource`.', got '%s'", + "Expected error to contain 'No source was found by the name of `NonExistentSource` within the canvas `Main`.', got '%s'", err.Error(), ) }