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

x/dtils/mod.unstable.ts>prependErrorMessageWith

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

Modifies the message field of error to be prepended with prepend

Parameters

error: unknown
prepend: string