mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
fix tars2node to avoid warning
This commit is contained in:
parent
5fbcdc6322
commit
46237e7493
@ -199,7 +199,7 @@ string CodeGenerator::generateTSProxy(const NamespacePtr &nPtr, const InterfaceP
|
||||
DEL_TAB;
|
||||
str << TAB << "};" << endl;
|
||||
DEL_TAB;
|
||||
str << TAB << "} catch (e) {" << endl;
|
||||
str << TAB << "} catch (e:any) {" << endl;
|
||||
INC_TAB;
|
||||
str << TAB << "throw _makeError(data, e.message, " << IDL_NAMESPACE_STR << "Rpc.error.CLIENT.DECODE_ERROR);" << endl;
|
||||
DEL_TAB;
|
||||
@ -311,7 +311,7 @@ string CodeGenerator::generateTSProxy(const NamespacePtr &nPtr, const InterfaceP
|
||||
DEL_TAB;
|
||||
str << TAB << "};" << endl;
|
||||
DEL_TAB;
|
||||
str << TAB << "} catch (e) {" << endl;
|
||||
str << TAB << "} catch (e:any) {" << endl;
|
||||
INC_TAB;
|
||||
str << TAB << "throw _makeError(data, e.message, " << IDL_NAMESPACE_STR << "Rpc.error.CLIENT.DECODE_ERROR);" << endl;
|
||||
DEL_TAB;
|
||||
|
Loading…
Reference in New Issue
Block a user