Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
function fail
import { fail } from "https://deno.land/x/assert_fs@v0.1.1/deps.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