Skip to content

Instantly share code, notes, and snippets.

@apb2006
Created March 31, 2016 22:09
Show Gist options
  • Save apb2006/37b9f50f25cf409d440ee11fdb951792 to your computer and use it in GitHub Desktop.
Save apb2006/37b9f50f25cf409d440ee11fdb951792 to your computer and use it in GitHub Desktop.
declare function local:result($id){
try{
map{ "result":async:result($id)
}
} catch * {
map{ "error": map {
'code': $err:code,
'description': $err:description,
'module': $err:module,
'line': $err:line-number,
'column': $err:column-number,
'value': $err:value
}
}
}
};
async:ids()=>head()=>local:result()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment