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

x/readme_manager/mod.ts>error

helps manage and harmonise READMEs in many repositories with template files
Latest
variable error
Re-export
import { error } from "https://deno.land/x/readme_manager@v3.0.0/mod.ts";

Error handler. Used log information to console and write to file then exit app.

import { error } from "./log.ts"
const errorHandler = error("/path/to/logfile.log", true)
errorHandler('Something went wrong.', new Error('The error'))

type

(
appLogFile: string,
cliMode?: boolean,
debug?: boolean,
) => unknown