fix empty filter list error message, canvas name was added:

1fcb95b15a/src/requesthandler/rpc/Request.cpp (L256-L257)
This commit is contained in:
2026-04-11 02:13:44 +01:00
parent 84e88b919c
commit 367d5975bd

View File

@@ -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(),
)
}