Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opinecli/deps.ts>Command#error

Opine's application generator
Latest
method Command.prototype.error
Re-export
import { Command } from "https://deno.land/x/opinecli@2.0.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

Error