Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 729c8e9

Browse files
Merge pull request #128 from MrMage/patch-1
Make `handleValidationError` public
2 parents 1ecfacb + ac9c360 commit 729c8e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AdminPanel/Helpers/ValidationError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Leaf
33
import Submissions
44
import Vapor
55

6-
func handleValidationError(
6+
public func handleValidationError(
77
path: String,
88
message: String = "Something went wrong while validating the form.",
99
on req: Request
@@ -20,7 +20,7 @@ func handleValidationError(
2020
}
2121
}
2222

23-
func handleValidationError<E: Encodable>(
23+
public func handleValidationError<E: Encodable>(
2424
path: String,
2525
message: String = "Something went wrong while validating the form.",
2626
context: E,

0 commit comments

Comments
 (0)