Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑天保
webssh
Commits
9aebb6e4
Commit
9aebb6e4
authored
Oct 13, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated write_error
parent
daa24021
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
handler.py
webssh/handler.py
+4
-4
main.js
webssh/static/js/main.js
+1
-1
No files found.
webssh/handler.py
View file @
9aebb6e4
...
...
@@ -78,14 +78,14 @@ class IndexHandler(MixinHandler, tornado.web.RequestHandler):
if
not
swallow_http_errors
:
super
(
MixinHandler
,
self
)
.
write_error
(
status_code
,
**
kwargs
)
else
:
if
status_code
==
500
:
self
.
_reason
=
'Internal Server Error'
else
:
exc_info
=
kwargs
.
get
(
'exc_info'
)
if
exc_info
:
self
.
_reason
=
exc_info
[
1
]
.
log_message
reason
=
getattr
(
exc_info
[
1
],
'log_message'
,
None
)
if
reason
:
self
.
_reason
=
reason
self
.
result
.
update
(
status
=
self
.
_reason
)
self
.
set_status
(
200
)
self
.
set_header
(
'Server'
,
'TornadoServer'
)
self
.
finish
(
self
.
result
)
def
get_ssh_client
(
self
):
...
...
webssh/static/js/main.js
View file @
9aebb6e4
...
...
@@ -189,7 +189,7 @@ jQuery(function($){
}
var
msg
=
resp
.
responseJSON
;
if
(
msg
.
status
)
{
if
(
!
msg
.
id
)
{
log_status
(
msg
.
status
);
state
=
DISCONNECTED
;
return
;
...
...
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