nushell/crates/nu-protocol/src/errors
Maxim Uvarov 9411458689
rewrite error message to not use the word function (#14533)
# Description

After [the discussion on
discord](https://discord.com/channels/601130461678272522/601130461678272524/1314600410882904125)
I propose to rephrase the error message to avoid using the word
`function`.

From `Return used outside of function` to `Return used outside of custom
command or closure`


![image](https://github.com/user-attachments/assets/d14331c8-e381-4b04-8709-bd6064e0791e)



# User-Facing Changes

None

# Tests + Formatting

toolkit.nu fmt is good
2024-12-06 18:09:11 -06: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 Add label rendering to try/catch rendered errors (#14477) 2024-11-29 19:02:26 -06:00
mod.rs Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
parse_error.rs normalize special characters in module names to allow variable access (#14353) 2024-12-05 21:35:15 +08:00
parse_warning.rs Deprecate group in favor of chunks (#13377) 2024-07-16 03:49:00 +00:00
shell_error.rs rewrite error message to not use the word function (#14533) 2024-12-06 18:09:11 -06:00