Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/habitra/deps.ts>Command#throw

Command line tool for HabiTra
Latest
method Command.prototype.throw
Re-export
import { Command } from "https://deno.land/x/habitra@v0.3.0/deps.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