Skip to content

Commit

Permalink
Improve error message when command not in vterm-eval-cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Jun 13, 2022
1 parent a7be72a commit 3155a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vterm.el
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,8 @@ the called functions."
(f (assoc command vterm-eval-cmds)))
(if f
(apply (cadr f) args)
(message "Failed to find command: %s" command))))
(message "Failed to find command: %s. To execute a command,
add it to the `vterm-eval-cmd' list" command))))

;; TODO: Improve doc string, it should not point to the readme but it should
;; be self-contained.
Expand Down

0 comments on commit 3155a47

Please sign in to comment.