Make compile() error friendly