You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/05/29 10:52:48 UTC

svn commit: r542462 - /incubator/stdcxx/trunk/etc/config/windows/generate.wsf

Author: faridz
Date: Tue May 29 01:52:47 2007
New Revision: 542462

URL: http://svn.apache.org/viewvc?view=rev&rev=542462
Log:
2007-05-29 Farid Zaripov <Fa...@epam.com>

	* generate.wsf (Echo) : Try/catched the output to the StdOut
	to prevent the error: generate.wsf(90, 6) (null): The handle is invalid.

Modified:
    incubator/stdcxx/trunk/etc/config/windows/generate.wsf

Modified: incubator/stdcxx/trunk/etc/config/windows/generate.wsf
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/generate.wsf?view=diff&rev=542462&r1=542461&r2=542462
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/generate.wsf (original)
+++ incubator/stdcxx/trunk/etc/config/windows/generate.wsf Tue May 29 01:52:47 2007
@@ -86,8 +86,14 @@
 // the replacement of the WScript.Echo()
 function Echo(msg)
 {
-    // WScript.Echo(msg);
-    WScript.StdOut.WriteLine(msg);
+    try
+    {
+        // WScript.Echo(msg);
+        WScript.StdOut.WriteLine(msg);
+    }
+    catch(e)
+    {
+    }
 }
 
 // print message to the stdout and out the message to the logfile