Replace "Unknown internal error occurred" with a more helpful message. (#3982)

4 files changed