Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>test_ignore_error

๐Ÿ“š Standard module for denops.vim
Go to Latest
function test_ignore_error
import { test_ignore_error } from "https://deno.land/x/denops_std@v3.9.0/function/vim/mod.ts";

Ignore any error containing {expr}. A normal message is given instead. This is only meant to be used in tests, where catching the error with try/catch cannot be used (because it skips over following code). {expr} is used literally, not as a pattern. When the {expr} is the string "RESET" then the list of ignored errors is made empty. Can also be used as a |method|: GetErrorText()->test_ignore_error()

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>