It might look better to just replace the `errMsg` in the Dialog, with these lines and not use the variable, since that is how it does everywhere else. If removing the `errString` variable too, is good, then we can combine it all without additional variables.