1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-27 12:35:21 -05:00

refine error messages

This commit is contained in:
Darien Raymond
2017-02-02 14:42:31 +01:00
parent 8afdbbfc9f
commit d3d2fab1d9
18 changed files with 128 additions and 167 deletions

View File

@@ -2,17 +2,6 @@
// See each sub-package for detail.
package common
import (
"errors"
)
var (
ErrObjectReleased = errors.New("Object already released.")
ErrBadConfiguration = errors.New("Bad configuration.")
ErrObjectNotFound = errors.New("Object not found.")
ErrDuplicatedName = errors.New("Duplicated name.")
)
// Must panics if err is not nil.
func Must(err error) {
if err != nil {