From ce9d0a1758541c7861a9b74f0026135d29437af4 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 17 Dec 2010 20:43:41 -0500 Subject: [PATCH] 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mojosetup.c b/mojosetup.c index 6aec12b..987fc29 100644 --- a/mojosetup.c +++ b/mojosetup.c @@ -160,12 +160,13 @@ static boolean initEverything(void) { // 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."));