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

This commit is contained in:
Mustafa Sencer Özcan
2025-10-01 09:54:14 +02:00
committed by GitHub
parent b7bdc98479
commit aeb62b7acc
9 changed files with 214 additions and 28 deletions
@@ -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"))
})
}