Temporary fix for rpinfo changes. Improve getErrorDialog