Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Cliffy.Command.prototype.error
Re-export
import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/original_deps.ts";
const { Command } = Cliffy;

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

Error