refactor to allow for FES error integration _Originally posted by @tomholub in https://github.com/FlowCrypt/flowcrypt-browser/issues/3015#issuecomment-727969451_
refactor to allow for FES error integration
Originally posted by @tomholub in #3015 (comment)