Explorar o código

fix tars2node to avoid warning

ruanshudong hai 1 ano
pai
achega
46237e7493
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/tars2node/gen_proxy_ts.cpp

+ 2 - 2
tools/tars2node/gen_proxy_ts.cpp

@@ -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;