This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
greenrpc
mirror of
https://github.com/brettlangdon/greenrpc.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
5
Wiki
Activity
Browse Source
show better error messages
this is important mostly when the exception doesn't have a set 'message' attribute
master
Brett Langdon
11 years ago
parent
5cdf8f748e
commit
2f81dc2d1c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
greenrpc/base.py
+ 1
- 1
greenrpc/base.py
View File
@ -63,7 +63,7 @@ class BaseServer(object):
try
:
result
[
"
results
"
]
=
self
.
services
[
req_method
]
(
*
req_args
)
except
Exception
,
e
:
result
[
"
error
"
]
=
e
.
message
result
[
"
error
"
]
=
repr
(
e
)
result
[
"
run_time
"
]
=
(
time
.
time
(
)
-
start_time
)
*
1000.0
return
result
Write
Preview
Loading…
Cancel
Save