Log an error and exit if rotation direction is bad