Handle errors better when running bots:preview