panic

For debug.

Causes nushell to panic.

Command Type

built-in

Signature

> panic {flags} (msg)

Parameters

  • msg: The custom message for the panic.

Input/output types:

input output
nothing nothing

Examples

Panic with a custom message

> panic 'This is a custom panic message'

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.