mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 04:55:37 -05:00
refactor error messages
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
// See each sub-package for detail.
|
||||
package common
|
||||
|
||||
//go:generate go run $GOPATH/src/v2ray.com/core/tools/generrorgen/main.go -pkg common -path Common
|
||||
|
||||
// Must panics if err is not nil.
|
||||
func Must(err error) {
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user