nushell/crates/nu-protocol/src/errors
Ian Manske fce6146576
Refactor config updates (#13802)
# Description
This PR standardizes updates to the config through a new
`UpdateFromValue` trait. For now, this trait is private in case we need
to make changes to it.

Note that this PR adds some additional `ShellError` cases to create
standard error messages for config errors. A follow-up PR will move
usages of the old error cases to these new ones. This PR also uses
`Type::custom` in lots of places (e.g., for string enums). Not sure if
this is something we want to encourage.

# User-Facing Changes
Should be none.
2024-10-11 18:40:32 +02:00
..
cli_error.rs Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
compile_error.rs Internal representation (IR) compiler and evaluator (#13330) 2024-07-10 17:33:59 -07:00
config_error.rs Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
labeled_error.rs Fix bad method links in docstrings (#13471) 2024-07-27 19:39:29 -07:00
mod.rs Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
parse_error.rs Parse time type checking for range (#13595) 2024-08-13 15:05:34 +08:00
parse_warning.rs Deprecate group in favor of chunks (#13377) 2024-07-16 03:49:00 +00:00
shell_error.rs Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00