Introduce %last_error% (#63)

This commit is contained in:
vms
2021-02-11 15:39:37 +03:00
committed by GitHub
parent 709b5e0a52
commit 05499a6bc1
29 changed files with 1229 additions and 669 deletions

View File

@ -77,13 +77,10 @@ pub fn echo_string_call_service() -> CallServiceClosure {
};
let arg: Vec<String> = serde_json::from_str(arg).unwrap();
let arg = serde_json::to_string(&arg[0]).unwrap();
Some(IValue::Record(
NEVec::new(vec![
IValue::S32(0),
IValue::String(format!("\"{}\"", arg[0])),
])
.unwrap(),
NEVec::new(vec![IValue::S32(0), IValue::String(arg)]).unwrap(),
))
})
}