fix: improve api error handling for dashboards and folders (#111831)

This commit is contained in:
Mustafa Sencer Özcan authored and GitHub committed 2025-10-01 09:54:14 +02:00
1 parent b7bdc98479
commit aeb62b7acc
9 files changed
+214 -28

No files matched your search

@@ -840,7 +840,7 @@ func TestIntegrationGetHeight(t *testing.T) {
t.Run("should failed when the parent folder exist in the subtree", func(t *testing.T) {
_, err = folderStore.GetHeight(context.Background(), parent.UID, orgID, &subTree[0])
require.Error(t, err, folder.ErrCircularReference)
require.Error(t, err, folder.ErrCircularReference.Errorf("circular reference detected"))
})
}