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

Commit

Permalink
Merge pull request #128 from MrMage/patch-1
Browse files Browse the repository at this point in the history
Make `handleValidationError` public
  • Loading branch information
steffendsommer authored Apr 2, 2019
2 parents 1ecfacb + ac9c360 commit 729c8e9
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 729c8e9

Please sign in to comment.