Project

General

Profile

Actions

Added in 1.9.0

$error

When an error occurs, the script will jump to :error and continue running, $error will return the error message.

Example

alias Example {
  ; Add a intentional error.
  noop $hget(

  ; Add a :error label to catch the error.
  :error

  ; Print the error caught.
  echo -ag The error is $error
}

Updated by Per Amundsen over 8 years ago · 1 revisions

Also available in: PDF HTML TXT