Skip to content

Commit

Permalink
add error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
gongxiancao committed Mar 10, 2016
1 parent 7266290 commit a6964f4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
'-1' : 'system busy, retry later',
0 : 'success',
1 : 'internal error, contact us',
10007: 'invalid token',
10008: 'token is expired',
10010: 'require token',
11001: 'require username',
11002: 'require password',
11003: 'user not exist',
11004: 'password not match',
11005: 'failed to generate token, contact us',
11006: 'failed to create user',
11007: 'failed to hash password',
11008: 'failed to save user, please check if required field is correct'
};
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "mlop-errors",
"version": "1.0.0",
"description": "micro-location open platform errors",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cloudnapps/mlop-errors.git"
},
"author": "GongXian Cao",
"license": "ISC",
"bugs": {
"url": "https://github.com/cloudnapps/mlop-errors/issues"
},
"homepage": "https://github.com/cloudnapps/mlop-errors#readme"
}

1 comment on commit a6964f4

@tedyyu
Copy link

@tedyyu tedyyu commented on a6964f4 Mar 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是public repo?? @gongxiancao

Please sign in to comment.