f-spot r3601 - trunk/src



Author: sdelcroix
Date: Fri Jan 25 16:21:53 2008
New Revision: 3601
URL: http://svn.gnome.org/viewvc/f-spot?rev=3601&view=rev

Log:
more explicit error msg

Modified:
   trunk/src/Db.cs

Modified: trunk/src/Db.cs
==============================================================================
--- trunk/src/Db.cs	(original)
+++ trunk/src/Db.cs	Fri Jan 25 16:21:53 2008
@@ -303,7 +303,7 @@
 			}
 
 		if (upgrader_path == null)
-			throw new DbException ("Unable to find the f-spot-sqlite-upgrade script on your system");
+			throw new DbException ("Failed to upgrade the f-spot sqlite2 database to sqlite3!\n" + "Unable to find the f-spot-sqlite-upgrade script on your system");
 
 		Console.WriteLine ("Running {0}...", upgrader_path);
 		ProcessStartInfo updaterInfo = new ProcessStartInfo (upgrader_path);
@@ -313,7 +313,7 @@
 		string stdError = updater.StandardError.ReadToEnd ();
 		updater.WaitForExit ();
 		if (updater.ExitCode != 0)
-			throw new DbException(stdError);
+			throw new DbException("Failed to upgrade the f-spot sqlite2 database to sqlite3!\n" + stdError);
 
 		//Re-open the db
 		database = new QueuedSqliteDatabase(path);



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