Skip to content

Instantly share code, notes, and snippets.

@omrilotan
Created April 5, 2020 14:07
Show Gist options
  • Save omrilotan/813f012c28388ad76b1bd5b0222b4e92 to your computer and use it in GitHub Desktop.
Save omrilotan/813f012c28388ad76b1bd5b0222b4e92 to your computer and use it in GitHub Desktop.
const { code, details } = error;
Object.assign(record, { code, details });
...
sendError(record);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment