chore(tvix/eval): implement std::error::Error for tvix_eval::Error
This makes it easier to interface this error with other crates. Change-Id: I4947ea6097608f8c0427fb94a819ef748d94ea4b Reviewed-on: https://cl.tvl.fyi/c/depot/+/7711 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
31973890a9
commit
49ee3e3b14
2 changed files with 20 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ use codemap::{CodeMap, Span};
|
|||
|
||||
/// Tracks all source code in a Tvix evaluation for accurate error
|
||||
/// reporting.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct SourceCode(Rc<RefCell<CodeMap>>);
|
||||
|
||||
impl SourceCode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue