On a fool’s errand
To do something foolishly
To be involved in a useless journey or task
To start doing something blindly without considering the consequences
To run an errand aimlessly