Add error checking when importing a wallet from a corrupt file
Merge pull request #1827 from matiaspando/feature/checkProfile

Add error checking when importing a wallet from a corrupt file