errors.go 498 B

123456789101112131415161718
  1. // Copyright 2015 - Present, The Gogs Authors. All rights reserved.
  2. // Copyright 2018 - Present, Gitote. All rights reserved.
  3. //
  4. // This source code is licensed under the MIT license found in the
  5. // LICENSE file in the root directory of this source tree.
  6. package errors
  7. import "errors"
  8. // ErrInternalServer stores default error
  9. var ErrInternalServer = errors.New("internal server error")
  10. // New is a wrapper of real errors.New function.
  11. func New(text string) error {
  12. return errors.New(text)
  13. }