[CHEF-3863] improve error compat with old impl.
[CHEF-3863] improve error compat with old impl.

Ppjet6/chef,ckaushik/chef,askl56/chef,chef/chef,legal90/chef,zshuo/chef,aaron-lane/chef,coderanger/chef,karthikrev/chef,ShadySQL/chef-merged,jordane/chef,nsdavidson/chef,robmul/chef,mattray/chef,swalberg/chef,lamont-granquist/chef,b002368/chef-repo,ShadySQL/chef-merged,DeWaRs1206/chef,ccsplit/chef,tomdoherty/chef,nsdavidson/chef,mikedodge04/chef,faspl/chef,gsaslis/chef,strangelittlemonkey/chef,docwhat/chef,legal90/chef,pburkholder/chef,andrewpsp/chef,grubernaut/chef,martinb3/chef,mwrock/chef,mikedodge04/chef,smurawski/chef,askl56/chef,sanditiffin/chef,patcon/chef,ducthanh/chef,renanvicente/chef,baberthal/chef,askl56/chef,sekrett/chef,nalingarg2/chef-1,erkolson/chef,andrewpsp/chef,AndyBoucher/Chef-Testing,mikefaille/chef,BackSlasher/chef,patcon/chef,karthikrev/chef,ekometti/chef,nguyen-tien-mulodo/chef,paulmooring/chef,jagdeesh109/chef,webframp/chef,cachamber/chef,patcon/chef,Ppjet6/chef,permyakovsv/chef,polamjag/chef,jblaine/chef,tbriggs-curse/chef,tbriggs-curse/chef,nalingarg2/chef-1,skmichaelson/chef,cgvarela/chef,karthikrev/chef,onlyhavecans/chef,erkolson/chef,clintoncwolfe/chef,ranjib/chef,nguyen-tien-mulodo/chef,OpSitters/chef,OpSitters/chef,legal90/chef,youngjl1/chef,zshuo/chef,someara/chef,jk47/chef,GabKlein/chef-merged,gene1wood/chef,sekrett/chef,lamont-granquist/chef,jimmymccrory/chef,ccope/chef,oclaussen/chef,legal90/chef,oclaussen/chef,skmichaelson/chef,kaznishi/chef,bahamas10/chef,nvwls/chef,sometimesfood/chef,ducthanh/chef,AndyBoucher/Chef-Testing,onlyhavecans/chef,mikedodge04/chef,faspl/chef,nathwill/chef,jimmymccrory/chef,docwhat/chef,higanworks/chef,strangelittlemonkey/chef,webframp/chef,mio-g/chef,jkerry/chef,sysbot/chef,danielsdeleo/seth,ccsplit/chef,danielsdeleo/seth,MichaelPereira/chef,paulmooring/chef,nsdavidson/chef,permyakovsv/chef,jonlives/chef,acaiafa/chef,DeWaRs1206/chef,MsysTechnologiesllc/chef,mikedodge04/chef,higanworks/chef,Tensibai/chef,bahamas10/chef,malisettirammurthy/chef,DeWaRs1206/chef,nicklv/chef,jmhardison/chef,danielsdeleo/seth,nellshamrell/chef,tbunnyman/chef,juliandunn/chef,mattray/chef,oclaussen/chef,AndyBoucher/Chef-Testing,custora/chef,criteo-forks/chef,zuazo-forks/chef,jagdeesh109/chef,b002368/chef-repo,DeWaRs1206/chef,jk47/chef,ccsplit/chef,circleback/chef,nguyen-tien-mulodo/chef,jordane/chef,jagdeesh109/chef,sanditiffin/chef,MichaelPereira/chef,jaymzh/chef,ckaushik/chef,joemiller/chef,criteo-forks/chef,swalberg/chef,sysbot/chef,mio-g/chef,jblaine/chef,AndyBoucher/Chef-Testing,nguyen-tien-mulodo/chef,gene1wood/chef,adamleff/chef,mikefaille/chef,nicklv/chef,robmul/chef,nathwill/chef,malisettirammurthy/chef,sempervictus/chef,jk47/chef,sysbot/chef,lamont-granquist/chef,zshuo/chef,3dinfluence/chef,ccope/chef,mio-g/chef,clintoncwolfe/chef,polamjag/chef,ktpan/chef-play,youngjl1/chef,BackSlasher/chef,permyakovsv/chef,b002368/chef-repo,criteo-forks/chef,3dinfluence/chef,ducthanh/chef,mio-g/chef,faspl/chef,mal/chef,sekrett/chef,swalberg/chef,danielsdeleo/seth,grubernaut/chef,tas50/chef-1,youngjl1/chef,baberthal/chef,zuazo-forks/chef,baberthal/chef,smurawski/chef,ChaosCloud/chef,adamleff/chef,circleback/chef,martinb3/chef,Ppjet6/chef,nalingarg2/chef-1,MichaelPereira/chef,tbriggs-curse/chef,nathwill/chef,polamjag/chef,h4ck3rm1k3/chef,ekometti/chef,sekrett/chef,sanditiffin/chef,DeWaRs1206/chef,jmhardison/chef,ChaosCloud/chef,sanditiffin/chef,ranjib/chef,erkolson/chef,ranjib/chef,mattray/chef,martinisoft/chef,nellshamrell/chef,skmichaelson/chef,cgvarela/chef,b002368/chef-repo,jagdeesh109/chef,ccope/chef,paulmooring/chef,gsaslis/chef,zshuo/chef,lamont-granquist/chef,docwhat/chef,Igorshp/chef,natewalck/chef,askl56/chef,OpSitters/chef,permyakovsv/chef,3dinfluence/chef,jk47/chef,pburkholder/chef,sempervictus/chef,patcon/chef,Ppjet6/chef,Igorshp/chef,criteo-forks/chef,nalingarg2/chef-1,Kast0rTr0y/chef,brettcave/chef,someara/chef,ShadySQL/chef-merged,antonifs/chef,zuazo-forks/chef,GabKlein/chef-merged,patcon/chef,brettcave/chef,EasonYi/chef,ktpan/chef-play,tomdoherty/chef,zshuo/chef,nellshamrell/chef,acaiafa/chef,BackSlasher/chef,youngjl1/chef,AndyBoucher/Chef-Testing,ChaosCloud/chef,jaymzh/chef,h4ck3rm1k3/chef,ekometti/chef,cachamber/chef,evan2645/chef,onlyhavecans/chef,jmhardison/chef,h4ck3rm1k3/chef,3dinfluence/chef,sideci-sample/sideci-sample-chef,sysbot/chef,mal/chef,MsysTechnologiesllc/chef,sanditiffin/chef,sekrett/chef,BackSlasher/chef,ChaosCloud/chef,josb/chef,askl56/chef,nathwill/chef,custora/chef,mikedodge04/chef,sideci-sample/sideci-sample-chef,Kast0rTr0y/chef,ccope/chef,josb/chef,nellshamrell/chef,mwrock/chef,ccsplit/chef,grubernaut/chef,legal90/chef,kaznishi/chef,jkerry/chef,martinb3/chef,clintoncwolfe/chef,MichaelPereira/chef,mal/chef,lamont-granquist/chef,tbunnyman/chef,josb/chef,webframp/chef,baberthal/chef,mikefaille/chef,cgvarela/chef,sometimesfood/chef,jaymzh/chef,clintoncwolfe/chef,zuazo-forks/chef,mwrock/chef,malisettirammurthy/chef,kamaradclimber/chef,paulmooring/chef,jkerry/chef,jkerry/chef,tas50/chef-1,bahamas10/chef,mio-g/chef,jblaine/chef,MsysTechnologiesllc/chef,ktpan/chef-play,jonlives/chef,mikedodge04/chef,mio-g/chef,zuazo-forks/chef,jimmymccrory/chef,skmichaelson/chef,josb/chef,oclaussen/chef,sempervictus/chef,Igorshp/chef,Tensibai/chef,polamjag/chef,sysbot/chef,adamleff/chef,jimmymccrory/chef,juliandunn/chef,lamont-granquist/chef,someara/chef,juliandunn/chef,h4ck3rm1k3/chef,Tensibai/chef,ckaushik/chef,josb/chef,ShadySQL/chef-merged,martinb3/chef,nicklv/chef,pburkholder/chef,custora/chef,paulmooring/chef,nsdavidson/chef,antonifs/chef,cmluciano/chef,kamaradclimber/chef,tas50/chef-1,youngjl1/chef,coderanger/chef,GabKlein/chef-merged,coderanger/chef,ChaosCloud/chef,nicklv/chef,jblaine/chef,chef/chef,brettcave/chef,kaznishi/chef,malisettirammurthy/chef,jonlives/chef,tomdoherty/chef,nguyen-tien-mulodo/chef,AndyBoucher/Chef-Testing,joemiller/chef,sempervictus/chef,jordane/chef,chef/chef,robmul/chef,cachamber/chef,tbriggs-curse/chef,ccsplit/chef,ekometti/chef,chef/chef,patcon/chef,antonifs/chef,evan2645/chef,nguyen-tien-mulodo/chef,onlyhavecans/chef,strangelittlemonkey/chef,evan2645/chef,juliandunn/chef,swalberg/chef,DeWaRs1206/chef,evan2645/chef,mikefaille/chef,higanworks/chef,sideci-sample/sideci-sample-chef,tbunnyman/chef,OpSitters/chef,natewalck/chef,erkolson/chef,sempervictus/chef,juliandunn/chef,ktpan/chef-play,cgvarela/chef,clintoncwolfe/chef,circleback/chef,joemiller/chef,robmul/chef,webframp/chef,tbriggs-curse/chef,mal/chef,h4ck3rm1k3/chef,nvwls/chef,erkolson/chef,cachamber/chef,jonlives/chef,cgvarela/chef,grubernaut/chef,youngjl1/chef,evan2645/chef,jaymzh/chef,jblaine/chef,acaiafa/chef,jordane/chef,skmichaelson/chef,BackSlasher/chef,sempervictus/chef,acaiafa/chef,grubernaut/chef,sideci-sample/sideci-sample-chef,mikefaille/chef,aaron-lane/chef,cmluciano/chef,skmichaelson/chef,higanworks/chef,b002368/chef-repo,danielsdeleo/seth,martinb3/chef,nathwill/chef,strangelittlemonkey/chef,someara/chef,faspl/chef,swalberg/chef,docwhat/chef,ckaushik/chef,adamleff/chef,baberthal/chef,nvwls/chef,nsdavidson/chef,jmhardison/chef,cgvarela/chef,antonifs/chef,robmul/chef,pburkholder/chef,someara/chef,tbunnyman/chef,clintoncwolfe/chef,strangelittlemonkey/chef,ChaosCloud/chef,kaznishi/chef,jimmymccrory/chef,ktpan/chef-play,evan2645/chef,smurawski/chef,kamaradclimber/chef,Kast0rTr0y/chef,tomdoherty/chef,kaznishi/chef,jagdeesh109/chef,adamleff/chef,polamjag/chef,nicklv/chef,aaron-lane/chef,nvwls/chef,brettcave/chef,malisettirammurthy/chef,karthikrev/chef,OpSitters/chef,paulmooring/chef,cachamber/chef,mattray/chef,aaron-lane/chef,docwhat/chef,Igorshp/chef,permyakovsv/chef,BackSlasher/chef,brettcave/chef,jonlives/chef,h4ck3rm1k3/chef,jordane/chef,martinisoft/chef,custora/chef,oclaussen/chef,nicklv/chef,martinisoft/chef,jkerry/chef,Ppjet6/chef,EasonYi/chef,bahamas10/chef,smurawski/chef,polamjag/chef,renanvicente/chef,joemiller/chef,Igorshp/chef,tas50/chef-1,ranjib/chef,jblaine/chef,ShadySQL/chef-merged,MsysTechnologiesllc/chef,ckaushik/chef,nvwls/chef,GabKlein/chef-merged,Tensibai/chef,jimmymccrory/chef,baberthal/chef,aaron-lane/chef,ekometti/chef,onlyhavecans/chef,Igorshp/chef,jk47/chef,ckaushik/chef,josb/chef,natewalck/chef,antonifs/chef,criteo-forks/chef,mikefaille/chef,oclaussen/chef,gsaslis/chef,joemiller/chef,Tensibai/chef,3dinfluence/chef,jmhardison/chef,jmhardison/chef,mattray/chef,nalingarg2/chef-1,tbriggs-curse/chef,gene1wood/chef,higanworks/chef,nvwls/chef,antonifs/chef,custora/chef,andrewpsp/chef,gsaslis/chef,webframp/chef,coderanger/chef,gsaslis/chef,karthikrev/chef,Kast0rTr0y/chef,permyakovsv/chef,bahamas10/chef,cmluciano/chef,jagdeesh109/chef,acaiafa/chef,renanvicente/chef,erkolson/chef,ducthanh/chef,b002368/chef-repo,natewalck/chef,andrewpsp/chef,zuazo-forks/chef,EasonYi/chef,faspl/chef,renanvicente/chef,swalberg/chef,renanvicente/chef,zshuo/chef,cmluciano/chef,jkerry/chef,someara/chef,EasonYi/chef,circleback/chef,nalingarg2/chef-1,webframp/chef,tbunnyman/chef,bahamas10/chef,legal90/chef,karthikrev/chef,cmluciano/chef,Kast0rTr0y/chef,joemiller/chef,smurawski/chef,sometimesfood/chef,natewalck/chef,Kast0rTr0y/chef,jk47/chef,circleback/chef,aaron-lane/chef,sometimesfood/chef,sideci-sample/sideci-sample-chef,custora/chef,sometimesfood/chef,docwhat/chef,pburkholder/chef,nathwill/chef,malisettirammurthy/chef,sekrett/chef,jonlives/chef,ducthanh/chef,EasonYi/chef,ranjib/chef,acaiafa/chef,criteo-forks/chef,martinisoft/chef,andrewpsp/chef,martinisoft/chef,andrewpsp/chef,ccsplit/chef,grubernaut/chef,ekometti/chef,sometimesfood/chef,EasonYi/chef,faspl/chef,gsaslis/chef,nellshamrell/chef,adamleff/chef,ducthanh/chef,strangelittlemonkey/chef,3dinfluence/chef,MichaelPereira/chef,ranjib/chef,mal/chef,gene1wood/chef,mal/chef,askl56/chef,natewalck/chef,OpSitters/chef,pburkholder/chef,renanvicente/chef,ktpan/chef-play,cachamber/chef,kamaradclimber/chef,smurawski/chef,onlyhavecans/chef,kaznishi/chef,martinb3/chef,brettcave/chef,ccope/chef,MichaelPereira/chef,tomdoherty/chef,mwrock/chef,robmul/chef,Ppjet6/chef,sanditiffin/chef,tbunnyman/chef,circleback/chef,nsdavidson/chef,nellshamrell/chef