Skip to content

Commit

Permalink
Changed panic() messages for startup failures.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Dec 18, 2010
1 parent 16e4712 commit ce9d0a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mojosetup.c
Expand Up @@ -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."));
Expand Down

0 comments on commit ce9d0a1

Please sign in to comment.