Function: erc-error

erc-error is a byte-compiled function defined in erc.el.gz.

Signature

(erc-error &rest ARGS)

Documentation

Pass ARGS to format, and display the result as an error message.

If debug-on-error is set to non-nil, then throw a real error with this message instead, to make debugging easier.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;;; Displaying error messages

(defun erc-error (&rest args)
  "Pass ARGS to `format', and display the result as an error message.
If `debug-on-error' is set to non-nil, then throw a real error with this
message instead, to make debugging easier."
  (if debug-on-error
      (apply #'error args)
    (apply #'message args)
    (beep)))