auth.go 332 B

123456789101112131415
  1. // Copyright 2014 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package auth
  5. import (
  6. "fmt"
  7. "github.com/gogits/validation"
  8. )
  9. func GenerateErrorMsg(e *validation.ValidationError) string {
  10. return fmt.Sprintf("%v", e.LimitValue)
  11. }