diff --git a/src/lune/mod.rs b/src/lune/mod.rs index 2d0821e..51ac671 100644 --- a/src/lune/mod.rs +++ b/src/lune/mod.rs @@ -64,7 +64,7 @@ impl Runtime { &mut self, script_name: impl AsRef, script_contents: impl AsRef<[u8]>, - ) -> Result<(ExitCode, Vec), RuntimeError> { + ) -> Result<(i32, Vec), RuntimeError> { // Create a new scheduler for this run let sched = Scheduler::new(&self.lua); @@ -93,13 +93,13 @@ impl Runtime { .into_vec(); Ok(( - ExitCode::from(sched.get_exit_code().unwrap_or({ + sched.get_exit_code().unwrap_or({ if got_any_error.load(Ordering::SeqCst) { 1 } else { 0 } - }) as u8), + }), thread_res, )) }