only shows errors if on localhost