nushell/nushell

Deprecate error types without spans

オープン

#4,323 opened on 2022/01/29

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (2,129 件のフォーク)batch import
help wantedstatus:needs-design

Repository metrics

Stars
 (39,478 個のスター)
PR merge metrics
 (平均マージ 4d 1h) (30d で 123 merged PRs)

説明

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

コントリビューターガイド