Added better API errors and stuff

This commit is contained in:
Jori Lallo
2016-09-11 13:38:52 -07:00
parent 9b49b45fe7
commit 53c3d3c318
6 changed files with 34 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
exports[`test should require authentication 1`] = `
Object {
"message": "Authentication required"
"error": "Authentication required",
"success": false
}
`;
@@ -11,6 +12,7 @@ Object {
"id": "86fde1d4-0050-428f-9f0b-0bf77f8bdf61",
"name": "User 1",
"username": "user1"
}
},
"success": true
}
`;