Skip to content

Commit

Permalink
deploy: a480ee4
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Feb 17, 2024
1 parent dc80ae4 commit 72755d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ pub fn execute(source: &str) -> Result<bool, JsError> {
let res = std::panic::catch_unwind(|| eval(source));
match res {
Ok(b) => Ok(b),
Err(e) => Err(JsError::new(format!("{:?}", e).as_str()))
Err(e) => {
log(format!("{:?}", e));
Err(JsError::new(format!("{:?}", e).as_str()))
}
}
}

0 comments on commit 72755d2

Please sign in to comment.