Updated error output to show a reasonable error if available.