Skip to content

Instantly share code, notes, and snippets.

@dornatsky
dornatsky / error-formats.js
Created October 24, 2012 10:57 — forked from al6x/error-formats.js
Errors formats.
// Single error.
{
error: "a is bad"
}
// Single detailed error.
{
error: {
message : 'a is bad',
text : 'a is bad because of ...',