1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-12 21:12:32 +00:00

Add new function and fix a bug.

* SearpcError.msg should be a string object.
This commit is contained in:
killing
2012-05-24 17:32:49 +08:00
parent 369d7fbb8e
commit a1628f7055
2 changed files with 2 additions and 1 deletions

View File

@@ -41,4 +41,5 @@ func_table = [
[ "object", [] ],
[ "object", ["int"] ],
[ "object", ["string"] ],
[ "object", ["string", "string"] ],
]

View File

@@ -81,7 +81,7 @@ def searpc_func(ret_type, param_types):
try:
return fret(ret_str)
except fcallfret.error, e:
raise SearpcError(e)
raise SearpcError(str(e))
def newfunc_obj(self, *args):
fcall_str = fcall(func.__name__, *args)