James Joyce said this quote

Mistakes are the portals of discovery.