aboutsummaryrefslogtreecommitdiff
path: root/internal/db/errors/errors.go
blob: cc231436e7b409876ff7e0b0de27645ad63276c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017 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 errors

import "errors"

var InternalServerError = errors.New("internal server error")

// New is a wrapper of real errors.New function.
func New(text string) error {
	return errors.New(text)
}