mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Changed to Logger.Information() per request by Sebastienros
Fixed spelling of "occurred"
This commit is contained in:
@@ -84,13 +84,13 @@ namespace Orchard.AntiSpam.Drivers {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_notifier.Error(T("There was an error with the Captcha please try again"));
|
_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) {
|
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"));
|
updater.AddModelError("Parts_ReCaptcha_Fields", T("There was an error while validating the Captcha image"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ namespace Orchard.DynamicForms.Validators {
|
|||||||
var validationSettings = element.ValidationSettings;
|
var validationSettings = element.ValidationSettings;
|
||||||
var validationMessage = validationSettings.CustomValidationMessage.WithDefault("There was an error with the Captcha please try again");
|
var validationMessage = validationSettings.CustomValidationMessage.WithDefault("There was an error with the Captcha please try again");
|
||||||
context.ModelState.AddModelError("g-recaptcha-response", T(validationMessage).Text);
|
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) {
|
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);
|
context.ModelState.AddModelError("recaptcha_response_field", T("There was an error while validating the Captcha image.").Text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user