Use a popup to display the error message so the user's work is not lost
if an error is produced.