Skip to content

Commit

Permalink
Some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
monoid committed Jul 31, 2024
1 parent fbfe9ff commit d601a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions air/src/execution_step/instructions/embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ fn classify_starlark_error(err: air_interpreter_starlark::ExecutionError) -> Exe
use air_interpreter_starlark::ExecutionError::*;

match err {
// TODO perhaps, Other should be uncatchable
Value(_) | Function(_) | Other(_) => ExecutionError::Catchable(CatchableError::StalarkError(err).into()),
Scope(_) | Lexer(_) | Internal(_) => ExecutionError::Uncatchable(UncatchableError::StalarkError(err).into()),
}
Expand Down
2 changes: 2 additions & 0 deletions crates/air-lib/interpreter-starlark/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ pub fn execute(
// 2. AstModule is consumed on evaluation
//
// for that reason, we have to parse the script on each invocation
//
// see https://github.com/facebook/starlark-rust/issues/124
let ast: AstModule = AstModule::parse("dummy.star", content.to_owned(), &Dialect::Standard)
.map_err(ExecutionError::from_parser_error)?;

Expand Down

0 comments on commit d601a48

Please sign in to comment.