nushell/nushell

Deprecate error types without spans

开放

#4,323 创建于 2022年1月29日

 (1 条评论) (0 个反应) (0 位负责人)Rust (2,129 个派生)batch import
help wantedstatus:needs-design

仓库指标

星标
 (39,478 个星标)
PR 合并指标
 (平均合并 4天 1小时) (30 天内合并 123 个 PR)

描述

Errors that do not have spans are not very useful because they do not point at where the error happened. Example is ShellError::IOError. Maybe we should modify all error types to require a span and pass call.head to it as a bare minimum. There might be exceptions where this is not possible but in general I would strive to require spans on as many error types as possible.

Related: nushell/nushell#4326

贡献者指南