Added an error dialog.  Reference to external code