errors.go 364 B

1234567891011121314
  1. // Copyright 2017 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 errors
  5. import "errors"
  6. var InternalServerError = errors.New("internal server error")
  7. // New is a wrapper of real errors.New function.
  8. func New(text string) error {
  9. return errors.New(text)
  10. }