bitcoin/bitcoin — pull request #1917 by gavinandresen (2012-10-08 19:21:15+00:00)
Title: Handle incompatible BDB environments

Before, opening a -datadir that was created with a new
version of Berkeley DB would result in an un-caught DB_RUNRECOVERY
exception.

After these changes, the error is caught and the user is told
that there is a problem and is told how to try to recover from
it.