nushell/crates/nu-protocol/tests
Andrej Kolchin 1a864ea6f4
Refactor error make (#10923)
- Replaced `start`/`end` with span.
- Fixed standard library.
- Add `help` option.
- Add a couple more errors for invalid record types.

Resolve #10914


# Description



# User-Facing Changes

- **BREAKING CHANGE:** `error make` now takes in `span` instead of
`start`/`end`:

  ```Nushell
  error make {
      msg: "Message"
      label: {
          text: "Label text"
          span: (metadata $var).span
      }
  }
  ```
- `error make` now has a `help` argument for custom error help.
2023-11-03 10:09:33 -05:00
..
into_config.rs Clean up tests containing unnecessary cwd: tokens (#9692) 2023-07-17 18:43:51 +02:00
test_config.rs Refactor error make (#10923) 2023-11-03 10:09:33 -05:00
test_pipeline_data.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
test_signature.rs Differentiate internal signature from external signature w.r.t. help (#5667) 2022-05-29 15:14:15 +02:00
test_value.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00