Changed to Logger.Information() per request by Sebastienros

Fixed spelling of "occurred"
This commit is contained in:
EmeraldArcher
2015-06-04 14:19:12 -06:00
parent 0db2a8e6d9
commit 0b3d0d80cf
2 changed files with 4 additions and 4 deletions

View File

@@ -84,13 +84,13 @@ namespace Orchard.AntiSpam.Drivers {
}
else {
_notifier.Error(T("There was an error with the Captcha please try again"));
Logger.Error("Error occured while submitting a reCaptcha: " + responseModel.errorMessage[i]);
Logger.Information("Error occurred while submitting a reCaptcha: " + responseModel.errorMessage[i]);
}
}
}
}
catch (Exception e) {
Logger.Error(e, "An unexcepted error occured while submitting a reCaptcha");
Logger.Error(e, "An unexcepted error occurred while submitting a reCaptcha");
updater.AddModelError("Parts_ReCaptcha_Fields", T("There was an error while validating the Captcha image"));
}

View File

@@ -54,13 +54,13 @@ namespace Orchard.DynamicForms.Validators {
var validationSettings = element.ValidationSettings;
var validationMessage = validationSettings.CustomValidationMessage.WithDefault("There was an error with the Captcha please try again");
context.ModelState.AddModelError("g-recaptcha-response", T(validationMessage).Text);
Logger.Error("Error occured while submitting a reCaptcha: " + responseModel.errorMessage[i]);
Logger.Information("Error occurred while submitting a reCaptcha: " + responseModel.errorMessage[i]);
}
}
}
}
catch (Exception e) {
Logger.Error(e, "An unexcepted error occured while submitting a reCaptcha");
Logger.Error(e, "An unexcepted error occurred while submitting a reCaptcha");
context.ModelState.AddModelError("recaptcha_response_field", T("There was an error while validating the Captcha image.").Text);
}
}