[v9.5.x] Nested folders: Fix error response codes (#66975)
Nested folders: Fix error response codes (#66943)
* Nested folders: Fix error response codes
Fix error handling
(cherry picked from commit 24696d593b)
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6c0aeb452d
commit
8bc2a7144a
@@ -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