Error callback should always be called with the FileTransferError object, and not just the code