That depends on whose point of view is being considered.
If you've succeeded at the task, then you've succeeded at it, but you've failed to accomplish what you set out to do.
If you succeed to fail at the task, then you've failed the task but succeeded what you set out to do.
itsAllRelative
pouman