Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError.