Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-match
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-match
Commits
b4b0592f
Commit
b4b0592f
authored
Oct 09, 2016
by
Peter Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The case user information error
parent
b93d5cf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
main.js
main.js
+9
-0
No files found.
main.js
View file @
b4b0592f
...
...
@@ -19,6 +19,8 @@ let getUserConfig = function(user, callback) {
if
(
res
.
statusCode
!=
200
)
{
console
.
log
(
"
failed to load user data for
"
+
user
+
"
with code
"
+
res
.
statusCode
);
// Kick out
errorUser
(
res
);
}
else
{
...
...
@@ -177,6 +179,13 @@ let rejectUser = function(res) {
res
.
end
();
};
// 当没有正确收到消息时,
let
errorUser
=
function
(
res
)
{
console
.
log
(
res
.
username
+
"
errored for get user information.
"
);
res
.
statusCode
=
400
;
res
.
end
();
}
// 创建服务器
http
.
createServer
((
req
,
res
)
=>
{
try
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment