                             nil t nil nil
                             (doom--help-current-module-str)))
           (key (doom-module-from-path
-                (car (get-text-property 0 'location module-string)))))
+                (or (car (get-text-property 0 'location module-string))
+                    (user-error "Did not select a valid module")))))
      (list (car key)
            (cdr key))))
   (cl-check-type category symbol)

  (let ((path (doom-module-locate-path category module)))
    (unless (file-readable-p path)
      (error "'%s %s' isn't a valid module; it doesn't exist" category module))
    (if-let* ((readme-path (doom-module-locate-path category module "README.org")))
        (find-file readme-path)
      (if (y-or-n-p (format "The '%s %s' module has no README file. Explore its directory?"
                            category module))

                 (format "%s %s" (nth 1 sexp) (nth 2 sexp)))))))
        ((and buffer-file-name
              (when-let (mod (doom-module-from-path buffer-file-name))
                (unless (memq (car mod) '(:core :private))
                  (format "%s %s" (car mod) (cdr mod))))))
        ((when-let (mod (cdr (assq major-mode doom--help-major-mode-module-alist)))
           (format "%s %s"
                   (symbol-name (car mod))
