Currently, in functions which are required to emit ShellErrors (such as in nushell Commands), we convert the internal diagnostic to a ShellError::GenericError, which is quite lossy. The same is the case for parse errors.
To circumvent this lossy conversion, we can push errors instead to the quake engine itself, and handle them independently of nushell engine errors.
Currently, in functions which are required to emit
ShellError
s (such as in nushellCommand
s), we convert the internal diagnostic to aShellError::GenericError
, which is quite lossy. The same is the case for parse errors.To circumvent this lossy conversion, we can push errors instead to the quake engine itself, and handle them independently of nushell engine errors.