Skip to main content
Module

x/lume/deps/assert.ts>fail

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function fail
import { fail } from "https://deno.land/x/lume@v2.1.2/deps/assert.ts";

Forcefully throws a failed assertion.

Examples

Example 1

import { fail } from "https://deno.land/std@0.224.0/assert/fail.ts";

fail("Deliberately failed!"); // Throws

Parameters

optional
msg: string

Returns

never