Use XDisplayName() when reporting errors (bug 8079).