mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 00:54:56 +02:00
Allow 'error make' to make simple errors (#4881)
* Allow 'error make' to make simple errors * Add example
This commit is contained in:
@ -315,6 +315,9 @@ Either make sure {0} is a string, or add a 'to_string' entry for it in ENV_CONVE
|
||||
#[diagnostic(help("{1}"))]
|
||||
LabeledError(String, String),
|
||||
|
||||
#[error("{0}")]
|
||||
UnlabeledError(String),
|
||||
|
||||
#[error("{1}")]
|
||||
#[diagnostic()]
|
||||
OutsideSpannedLabeledError(#[source_code] String, String, String, #[label("{2}")] Span),
|
||||
|
Reference in New Issue
Block a user