Skip to content

Commit

Permalink
actually return the error
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Apr 9, 2024
1 parent 9f1c099 commit 6f897ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/graph/pkg/service/v0/api_drives_drive_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (s DrivesDriveItemService) MountShare(ctx context.Context, resourceID stora
items, err := cs3ReceivedSharesToDriveItems(ctx, &s.logger, gatewayClient, s.identityCache, acceptedShares)
switch {
case err != nil:
return libregraph.DriveItem{}, nil
return libregraph.DriveItem{}, err
case len(items) != 1:
return libregraph.DriveItem{}, errorcode.New(errorcode.GeneralException, "failed to convert accepted shares into drive-item")
}
Expand Down

0 comments on commit 6f897ef

Please sign in to comment.