Corrected the order of error checking message.