Add better warnings for bad resources