Print error message for invalid configs