Fixed a rouge error message.

An error message was printing out when it shouldn't.