Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dtils/errors.ts>prependErrorMessageWith

The best unofficial library of utilities for Deno applications
Latest
function prependErrorMessageWith
import { prependErrorMessageWith } from "https://deno.land/x/dtils@2.6.1/errors.ts";

Modifies the message field of error to be prepended with prepend

Parameters

error: unknown
prepend: string