Skip to content

Commit 2db69cf

Browse files
committed
Minor changes
1 parent a1af61f commit 2db69cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Initium/Attributes/QueryFilterAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void OnActionExecuted(ActionExecutedContext context)
3535
if (!query.TryGetValue(propertyName, out var parameterValue)) return;
3636

3737
if (StringValues.IsNullOrEmpty(parameterValue))
38-
throw new ApiException(HttpStatusCode.BadRequest, "FUCK HITLER");
38+
throw new ApiException(HttpStatusCode.BadRequest, "Query parameter is required but was not provided.");
3939

4040
if (!Enum.TryParse(propertyType, parameterValue, ignoreCase: true, out var enumValue))
4141
throw new ApiException(HttpStatusCode.BadRequest, $"Invalid query parameter value: `{parameterValue}` for `{propertyName}`. Allowed values are: {string.Join(", ", Enum.GetNames(propertyType))}.");

src/Initium/Attributes/ValidateModelAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class ValidateModelAttribute(Type validatorType) : Attribute, IActionFilt
1616
/// <summary>
1717
/// Called before the action method executes. Validates the model using the specified validator.
1818
/// </summary>
19-
/// <param name="context">The context for the action execution.</param>
19+
/// <param name="context">The context for the action filter.</param>
2020
public void OnActionExecuting(ActionExecutingContext context)
2121
{
2222
var argument = context.ActionArguments.Values.FirstOrDefault();

0 commit comments

Comments
 (0)