Changed panic() messages for startup failures.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 17 Dec 2010 20:43:41 -0500
changeset 802 c18c8fc916dd
parent 801 e5565f49223e
child 803 45de4213b858
Changed panic() messages for startup failures.

The Lua error is extremely unhelpful, since it's what you get if your
download is broken/incomplete, since it'll fail to find the appended .zip
file with the Lua scripts. The new error points out this possibility
directly.
mojosetup.c
--- a/mojosetup.c	Thu Dec 16 16:03:20 2010 -0500
+++ b/mojosetup.c	Fri Dec 17 20:43:41 2010 -0500
@@ -160,12 +160,13 @@
     {
         // This could terminate the process (and relaunch).
         if (!trySpawnTerminalGui())
-            panic("Initial GUI setup failed. Cannot continue.");
+            panic("Failed to start GUI. Is your download incomplete or corrupt?");
     } // if
 
     else if (!MojoLua_initLua())
     {
-        panic("Initial Lua setup failed. Cannot continue.");
+        // (...but if you're the developer: are your files in the wrong place?)
+        panic("Failed to start. Is your download incomplete or corrupt?");
     } // else if
 
     crashedmsg = xstrdup(_("The installer has crashed due to a bug."));