Преглед на файлове

fix tars2node to avoid warning

ruanshudong преди 1 година
родител
ревизия
46237e7493
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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;