Opened 9 years ago

Last modified 9 years ago

#392 new defect

Wizard gives unhelpful error message when install fails

Reported by: ezyang Owned by: ezyang
Priority: normal Milestone:
Component: wizard-infra Keywords:

Description (last modified by ezyang)

An example, from installing Wordpress with an empty admin username:

ERROR: Traceback (most recent call last):
  File "/mit/scripts/wizard/bin/wizard", line 128, in main
    command_module.main(rest_argv, baton)
  File "/afs/", line 68, in main
    application.install(v, options)
  File "/afs/", line 116, in install
    raise app.InstallFailure()

ERROR: Installation failed for unknown reason.  You can
retry the installation by appending --retry to the installation

There are a few ways you could go about improving this. The very simplest method is to catch errors in Wizard itself (e.g. assert admin user name is not null); however, this entails code duplication. Another is to parse the HTML output of the script in order to extract information on the error. An easy thing to do is dump the HTML to screen (or provide a temporary link where the error message can be viewed).

Change History (1)

comment:1 Changed 9 years ago by ezyang

  • Description modified (diff)
Note: See TracTickets for help on using tickets.