Function: tramp-barf-unless-okay

tramp-barf-unless-okay is a byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-barf-unless-okay VEC COMMAND FMT &rest ARGS)

Documentation

Run COMMAND, check exit status, throw error if exit status not okay.

Similar to tramp-send-command-and-check but accepts two more arguments FMT and ARGS which are passed to error.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defun tramp-barf-unless-okay (vec command fmt &rest args)
  "Run COMMAND, check exit status, throw error if exit status not okay.
Similar to `tramp-send-command-and-check' but accepts two more arguments
FMT and ARGS which are passed to `error'."
  (or (tramp-send-command-and-check vec command)
      (apply #'tramp-error vec 'file-error fmt args)))