Skip to content

Commit

Permalink
propagate exec error
Browse files Browse the repository at this point in the history
  • Loading branch information
arduano committed Apr 16, 2024
1 parent c7912e7 commit 0f67a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn evaluate(nix_expr: &str) -> EvalResult {

// Execute the Nix runtime JS module, get its exports
let nixjs_rt_str = include_str!("../../nixjs-rt/dist/lib.mjs");
let nixjs_rt_obj = exec_module(nixjs_rt_str, scope).unwrap();
let nixjs_rt_obj = exec_module(nixjs_rt_str, scope)?;

// Set them to a global variable
let nixrt_attr = v8::String::new(scope, "n").unwrap();
Expand Down

0 comments on commit 0f67a19

Please sign in to comment.