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

貢獻者指南