handle error output from which command