            ((and (listp location) (eq 'recipe (car location)))
             (configuration-layer//install-from-recipe pkg)
             (oset pkg :lazy-install nil))
-           (t (spacemacs-buffer/warning "Cannot install package %S."
+           (t (configuration-layer//warning "Cannot install package %S."
                                         pkg-name)))
         ('error
          (configuration-layer//increment-error-count)

         (recipe (cons pkg-name (cdr (oref pkg :location)))))
    (if recipe
        (quelpa recipe)
      (spacemacs-buffer/warning
       (concat "Cannot find any recipe for package %S! Be sure "
               "to add a recipe for it in alist %S.")
       pkg-name recipes-var))))

            (when (and (not ownerp)
                       (listp pkg)
                       (spacemacs/mplist-get pkg :toggle))
              (configuration-layer//warning
               (format (concat "Ignoring :toggle for package %s because "
                               "layer %S does not own it.")
                       pkg-name layer-name)))
