From e59f90b8fee3e615d1b60067bfc0d636606899d8 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 3 Mar 2014 19:03:08 -0500 Subject: Update --- utils/auth/auth.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 utils/auth/auth.go (limited to 'utils') diff --git a/utils/auth/auth.go b/utils/auth/auth.go new file mode 100644 index 00000000..10991034 --- /dev/null +++ b/utils/auth/auth.go @@ -0,0 +1,15 @@ +// Copyright 2014 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package auth + +import ( + "fmt" + + "github.com/gogits/validation" +) + +func GenerateErrorMsg(e *validation.ValidationError) string { + return fmt.Sprintf("%v", e.LimitValue) +} -- cgit v1.2.3