Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>command.Command#throw

Sync posts from Mastodon into FeoBlog
Latest
method command.Command.prototype.throw
Re-export
import { command } from "https://deno.land/x/feomasto@v1.0.1/priv/deps.ts";
const { Command } = command;

Handle error. If throwErrors is enabled the error will be thrown, otherwise a formatted error message will be printed and Deno.exit(1) will be called. This will also trigger registered error handlers.

Parameters

error: Error

The error to handle.

Returns

never