Better formatting for DeclarationException message.