Improve warnings for invalid configuration