errors.go 436 B

1234567891011121314151617
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Copyright 2018 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. var InternalServerError = errors.New("internal server error")
  9. // New is a wrapper of real errors.New function.
  10. func New(text string) error {
  11. return errors.New(text)
  12. }