Skip to main content
Module

x/cliffy/mod.ts>Command#throw

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.throw
Re-export
import { Command } from "https://deno.land/x/cliffy@v0.25.1/mod.ts";

Handle error. If throwErrors is enabled the error will be returned, otherwise a formatted error message will be printed and Deno.exit(1) will be called.

Parameters

error: Error

Error to handle.

Returns

never