Nested folders: Fix error response codes (#66943)
* Nested folders: Fix error response codes Fix error handling
This commit is contained in:
1 parent
7688ac6712
commit
24696d593b
3 files changed
+3
-4
No files matched your search
@@ -284,7 +284,7 @@ func (ss *sqlStore) getParentsMySQL(ctx context.Context, cmd folder.GetParentsQu
|
||||
folders = append(folders, f)
|
||||
uid = f.ParentUID
|
||||
if len(folders) > folder.MaxNestedFolderDepth {
|
||||
return folder.ErrFolderTooDeep
|
||||
return folder.ErrMaximumDepthReached.Errorf("failed to get parent folders iteratively")
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user