This commit is contained in:
2020-01-07 00:29:52 +00:00
parent 697a9501d8
commit af41b5ec28
2 changed files with 6 additions and 4 deletions

View File

@@ -117,6 +117,8 @@ Server error codes are all in the range of E1000 to E1999
API specific (logic) error codes are all in the range of 2000 to 3000
CLIENT ERROR CODES:
E16 -
E16 - ErrorUserNotAuthenticated
E17 - ErrorServerUnresponsive
E18 - Misc api error during server call, details in the message
*/
*/

View File

@@ -132,10 +132,10 @@ export default {
apiErrorToHumanString(apiError) {
//empty error object?
if (!apiError) {
return "apiErrorToHumanString():: Empty API eror, unknown";
return "(E18) - apiErrorToHumanString():: Empty API eror, unknown";
}
//convert to readable string
return JSON.stringify(apiError);
return "(E18) - " + JSON.stringify(apiError);
},
patchAuthorizedHeaders() {
return {