Skip to content
Snippets Groups Projects
Unverified Commit f1a68ece authored by GyDi's avatar GyDi
Browse files

fix: script code error

parent dd563360
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ pub fn use_script(script: String, config: Mapping) -> Result<(Mapping, Vec<(Stri
let code = format!(
r#"try{{
{script}\n;
{script};
JSON.stringify(main({config_str})||'')
}} catch(err) {{
`__error_flag__ ${{err.toString()}}`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment