pharext\Cli\Command::error PHP Method

error() public method

See also: pharext\Command::error()
public error ( $fmt )
    public function error($fmt)
    {
        if (!isset($fmt)) {
            $fmt = "%s\n";
            $arg = error_get_last()["message"];
        } else {
            $arg = array_slice(func_get_args(), 1);
        }
        vfprintf(STDERR, "ERROR: {$fmt}", $arg);
    }