ooo-build r13790 - in trunk: . test/mono



Author: rodo
Date: Thu Sep  4 09:52:10 2008
New Revision: 13790
URL: http://svn.gnome.org/viewvc/ooo-build?rev=13790&view=rev

Log:
2008-09-04  Radek Doulik  <rodo novell com>

	* test/mono/SpreadsheetDocHelper.cs: catch initialization
	exceptions, report error and suggest what might be wrong



Modified:
   trunk/ChangeLog
   trunk/test/mono/SpreadsheetDocHelper.cs

Modified: trunk/test/mono/SpreadsheetDocHelper.cs
==============================================================================
--- trunk/test/mono/SpreadsheetDocHelper.cs	(original)
+++ trunk/test/mono/SpreadsheetDocHelper.cs	Thu Sep  4 09:52:10 2008
@@ -29,7 +29,15 @@
         // Connect to a running office and get the service manager
         mxMSFactory = connect( args );
         // Create a new spreadsheet document
-        mxDocument = initDocument();
+	try {
+	    mxDocument = initDocument();
+	} catch {
+	    Console.WriteLine("Error: unable to properly initialize document! That\n" +
+	        "usually happens when UNO bootstrap went wrong. Please check that soffice\n" +
+	        "binary in your path points to right OOo installation or use UNO_PATH\n" +
+		"environment variable to set path to your soffice binary.");
+	    Environment.Exit(1);
+	}
     }
 
 // __  helper methods  ____________________________________________



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]