Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/AdminPanel/Helpers/ValidationError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Leaf
import Submissions
import Vapor

func handleValidationError(
public func handleValidationError(
path: String,
message: String = "Something went wrong while validating the form.",
on req: Request
Expand All @@ -20,7 +20,7 @@ func handleValidationError(
}
}

func handleValidationError<E: Encodable>(
public func handleValidationError<E: Encodable>(
path: String,
message: String = "Something went wrong while validating the form.",
context: E,
Expand Down