cvm-rs: Actually throw Error on guac decode errors

we were throwing String or something before..
This commit is contained in:
modeco80
2024-06-23 02:11:23 -04:00
parent 020c6310ec
commit 286f3eec62

View File

@@ -21,8 +21,7 @@ fn guac_decode_impl<'a>(cx: &mut FunctionContext<'a>) -> JsResult<'a, JsArray> {
} }
Err(e) => { Err(e) => {
let err = cx.string(format!("{}", e)); return cx.throw_error(format!("{}", e));
return cx.throw(err);
} }
} }
} }