fix: script code error
This commit is contained in:
parent
dd563360af
commit
f1a68ece01
1 changed files with 1 additions and 1 deletions
|
@ -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()}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue