Add missing SetupGeneration error handling in EncryptWallet
Add missing SetupGeneration error handling in EncryptWallet

Suggested https://github.com/bitcoin/bitcoin/pull/17304#discussion_r341286026
by me

jonasschnelli/bitcoin,apoelstra/bitcoin,DigitalPandacoin/pandacoin,AkioNak/bitcoin,jamesob/bitcoin,MarcoFalke/bitcoin,pataquets/namecoin-core,tjps/bitcoin,namecoin/namecoin-core,kallewoof/bitcoin,anditto/bitcoin,prusnak/bitcoin,qtumproject/qtum,MarcoFalke/bitcoin,sstone/bitcoin,sstone/bitcoin,prusnak/bitcoin,DigitalPandacoin/pandacoin,midnightmagic/bitcoin,bitcoinknots/bitcoin,bitcoinsSG/bitcoin,lateminer/bitcoin,practicalswift/bitcoin,peercoin/peercoin,n1bor/bitcoin,GroestlCoin/GroestlCoin,n1bor/bitcoin,achow101/bitcoin,GroestlCoin/GroestlCoin,midnightmagic/bitcoin,ElementsProject/elements,tjps/bitcoin,ahmedbodi/vertcoin,vertcoin/vertcoin,namecoin/namecoin-core,gjhiggins/vcoincore,andreaskern/bitcoin,ahmedbodi/vertcoin,ajtowns/bitcoin,bitcoinknots/bitcoin,sipsorcery/bitcoin,fanquake/bitcoin,namecoin/namecoin-core,rnicoll/bitcoin,litecoin-project/litecoin,n1bor/bitcoin,vertcoin/vertcoin,DigitalPandacoin/pandacoin,alecalve/bitcoin,namecoin/namecore,bitcoinsSG/bitcoin,lateminer/bitcoin,domob1812/bitcoin,apoelstra/bitcoin,Xekyo/bitcoin,fanquake/bitcoin,sstone/bitcoin,instagibbs/bitcoin,anditto/bitcoin,fanquake/bitcoin,sstone/bitcoin,ajtowns/bitcoin,yenliangl/bitcoin,mitchellcash/bitcoin,jonasschnelli/bitcoin,lateminer/bitcoin,pstratem/bitcoin,rnicoll/dogecoin,kallewoof/bitcoin,litecoin-project/litecoin,JeremyRubin/bitcoin,MeshCollider/bitcoin,mitchellcash/bitcoin,pstratem/bitcoin,tjps/bitcoin,GroestlCoin/GroestlCoin,tjps/bitcoin,EthanHeilman/bitcoin,AkioNak/bitcoin,domob1812/bitcoin,cdecker/bitcoin,Sjors/bitcoin,mruddy/bitcoin,mitchellcash/bitcoin,jlopp/statoshi,apoelstra/bitcoin,instagibbs/bitcoin,Xekyo/bitcoin,DigitalPandacoin/pandacoin,GroestlCoin/bitcoin,GroestlCoin/bitcoin,JeremyRubin/bitcoin,tecnovert/particl-core,GroestlCoin/bitcoin,yenliangl/bitcoin,litecoin-project/litecoin,jlopp/statoshi,dscotese/bitcoin,domob1812/namecore,peercoin/peercoin,rnicoll/bitcoin,sstone/bitcoin,jnewbery/bitcoin,jnewbery/bitcoin,jamesob/bitcoin,JeremyRubin/bitcoin,EthanHeilman/bitcoin,fujicoin/fujicoin,andreaskern/bitcoin,jamesob/bitcoin,GroestlCoin/GroestlCoin,n1bor/bitcoin,apoelstra/bitcoin,rnicoll/dogecoin,fujicoin/fujicoin,Xekyo/bitcoin,MeshCollider/bitcoin,bitcoinknots/bitcoin,prusnak/bitcoin,anditto/bitcoin,Sjors/bitcoin,qtumproject/qtum,mitchellcash/bitcoin,alecalve/bitcoin,bitcoin/bitcoin,practicalswift/bitcoin,fujicoin/fujicoin,EthanHeilman/bitcoin,jonasschnelli/bitcoin,ajtowns/bitcoin,tecnovert/particl-core,kallewoof/bitcoin,sipsorcery/bitcoin,rnicoll/bitcoin,bitcoinsSG/bitcoin,bitcoin/bitcoin,dscotese/bitcoin,midnightmagic/bitcoin,ahmedbodi/vertcoin,jlopp/statoshi,kallewoof/bitcoin,jamesob/bitcoin,fanquake/bitcoin,ElementsProject/elements,fanquake/bitcoin,jonasschnelli/bitcoin,namecoin/namecore,bitcoinsSG/bitcoin,sstone/bitcoin,vertcoin/vertcoin,practicalswift/bitcoin,jnewbery/bitcoin,namecoin/namecoin-core,fujicoin/fujicoin,apoelstra/bitcoin,jamesob/bitcoin,jambolo/bitcoin,jnewbery/bitcoin,dscotese/bitcoin,MeshCollider/bitcoin,mm-s/bitcoin,sipsorcery/bitcoin,instagibbs/bitcoin,rnicoll/dogecoin,cdecker/bitcoin,gjhiggins/vcoincore,kallewoof/bitcoin,yenliangl/bitcoin,namecoin/namecore,gjhiggins/vcoincore,pstratem/bitcoin,peercoin/peercoin,mm-s/bitcoin,alecalve/bitcoin,domob1812/bitcoin,dscotese/bitcoin,gjhiggins/vcoincore,ahmedbodi/vertcoin,bitcoinsSG/bitcoin,fanquake/bitcoin,qtumproject/qtum,lateminer/bitcoin,prusnak/bitcoin,midnightmagic/bitcoin,particl/particl-core,lateminer/bitcoin,mruddy/bitcoin,EthanHeilman/bitcoin,fujicoin/fujicoin,particl/particl-core,pataquets/namecoin-core,EthanHeilman/bitcoin,qtumproject/qtum,achow101/bitcoin,peercoin/peercoin,tjps/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,monacoinproject/monacoin,jlopp/statoshi,MarcoFalke/bitcoin,qtumproject/qtum,midnightmagic/bitcoin,fujicoin/fujicoin,bitcoin/bitcoin,jamesob/bitcoin,MarcoFalke/bitcoin,yenliangl/bitcoin,jlopp/statoshi,prusnak/bitcoin,AkioNak/bitcoin,domob1812/namecore,bitcoinknots/bitcoin,lateminer/bitcoin,bitcoin/bitcoin,achow101/bitcoin,peercoin/peercoin,namecoin/namecoin-core,tecnovert/particl-core,bitcoinknots/bitcoin,Sjors/bitcoin,EthanHeilman/bitcoin,practicalswift/bitcoin,bitcoin/bitcoin,instagibbs/bitcoin,tecnovert/particl-core,alecalve/bitcoin,Xekyo/bitcoin,tecnovert/particl-core,n1bor/bitcoin,jlopp/statoshi,Sjors/bitcoin,cdecker/bitcoin,Sjors/bitcoin,DigitalPandacoin/pandacoin,particl/particl-core,particl/particl-core,pstratem/bitcoin,jambolo/bitcoin,ElementsProject/elements,vertcoin/vertcoin,jambolo/bitcoin,monacoinproject/monacoin,litecoin-project/litecoin,domob1812/namecore,domob1812/bitcoin,apoelstra/bitcoin,JeremyRubin/bitcoin,gjhiggins/vcoincore,dscotese/bitcoin,alecalve/bitcoin,cdecker/bitcoin,namecoin/namecore,GroestlCoin/bitcoin,mruddy/bitcoin,ahmedbodi/vertcoin,MarcoFalke/bitcoin,jambolo/bitcoin,GroestlCoin/GroestlCoin,bitcoinsSG/bitcoin,ElementsProject/elements,pataquets/namecoin-core,GroestlCoin/bitcoin,domob1812/namecore,yenliangl/bitcoin,pataquets/namecoin-core,particl/particl-core,namecoin/namecore,instagibbs/bitcoin,mm-s/bitcoin,mm-s/bitcoin,GroestlCoin/GroestlCoin,DigitalPandacoin/pandacoin,ajtowns/bitcoin,monacoinproject/monacoin,gjhiggins/vcoincore,mitchellcash/bitcoin,mitchellcash/bitcoin,mruddy/bitcoin,ElementsProject/elements,ElementsProject/elements,mruddy/bitcoin,particl/particl-core,cdecker/bitcoin,MarcoFalke/bitcoin,MeshCollider/bitcoin,mm-s/bitcoin,MeshCollider/bitcoin,domob1812/bitcoin,pstratem/bitcoin,prusnak/bitcoin,tecnovert/particl-core,achow101/bitcoin,rnicoll/bitcoin,vertcoin/vertcoin,andreaskern/bitcoin,midnightmagic/bitcoin,anditto/bitcoin,mruddy/bitcoin,namecoin/namecoin-core,rnicoll/dogecoin,yenliangl/bitcoin,anditto/bitcoin,pataquets/namecoin-core,instagibbs/bitcoin,kallewoof/bitcoin,JeremyRubin/bitcoin,rnicoll/dogecoin,achow101/bitcoin,andreaskern/bitcoin,dscotese/bitcoin,ajtowns/bitcoin,sipsorcery/bitcoin,bitcoin/bitcoin,practicalswift/bitcoin,alecalve/bitcoin,vertcoin/vertcoin,GroestlCoin/bitcoin,Xekyo/bitcoin,litecoin-project/litecoin,jonasschnelli/bitcoin,domob1812/bitcoin,n1bor/bitcoin,AkioNak/bitcoin,qtumproject/qtum,monacoinproject/monacoin,ahmedbodi/vertcoin,tjps/bitcoin,JeremyRubin/bitcoin,jambolo/bitcoin,rnicoll/bitcoin,domob1812/namecore,peercoin/peercoin,pstratem/bitcoin,domob1812/namecore,Xekyo/bitcoin,AkioNak/bitcoin,namecoin/namecore,andreaskern/bitcoin,litecoin-project/litecoin,practicalswift/bitcoin,monacoinproject/monacoin,MeshCollider/bitcoin,jambolo/bitcoin,sipsorcery/bitcoin,pataquets/namecoin-core,cdecker/bitcoin,rnicoll/bitcoin,ajtowns/bitcoin,anditto/bitcoin,AkioNak/bitcoin,monacoinproject/monacoin,qtumproject/qtum,mm-s/bitcoin,jnewbery/bitcoin,andreaskern/bitcoin