HomePhorge

Return the right error code when trying to move an item that doesn't exist

Description

Return the right error code when trying to move an item that doesn't exist

Summary:
We used to return 110, which is not a valid code for MoveItems, now we return 1 as we
should.
We now also prefer the "invalid source collection" error code to the
"source and destination are equal" code. This is because if we have
garbage as source and destination, it makes more sense to say that the
id is invalid then that it is equal.

Differential Revision: https://git.kolab.org/D4950

Details

Provenance
mollekopfAuthored on Thu, Sep 19, 9:57 PM
mollekopfPushed on Wed, Oct 9, 9:54 AM
Differential Revision
D4950: Return the right error code when trying to move an item that doesn't exist
Parents
rSf790ec2f1dd0: bin/delete-device.php script to delete devices
Branches
Unknown
Tags
Unknown
Build Status
Buildable 50700