• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tell why it failed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tell why it failed


  • Subject: Tell why it failed
  • From: Scott Grosch <email@hidden>
  • Date: Thu, 06 Jun 2013 09:27:49 -0700

My installer depends heavily on a postinstall script to do most of the work.  The "install" part of the package just copies some data in, but then in postinstall I turn on Postgres, create the user/db, configure a bunch of files, etc….

There are many ways it can fail though, and right now I just do an "exit 1" and then the installer says the installation failed.

How do I provide the user with a message as to exactly *why* it failed?  For example, I'd like to be able to say, "Unable to connect to Postgres" so that they know to go check their configuration, for example.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Tell why it failed
      • From: Conor Schutzman <email@hidden>
  • Prev by Date: Re: preinstall/preupgrade scripts: The revenge
  • Next by Date: Re: Tell why it failed
  • Previous by thread: Re: preinstall/preupgrade scripts: The revenge
  • Next by thread: Re: Tell why it failed
  • Index(es):
    • Date
    • Thread