Skip to main content
Module

x/mod/deps.ts>Command#error

Simple Command Line Interface to create Deno module entrypoints, CI, config and more.
Latest
method Command.prototype.error
Re-export
import { Command } from "https://deno.land/x/mod@v2.3.9/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