1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-13 12:34:10 -04:00

rewrite error lib

This commit is contained in:
Darien Raymond
2016-12-04 09:10:47 +01:00
parent a4019a6900
commit efb24a4d21
65 changed files with 251 additions and 132 deletions

View File

@@ -1,7 +1,7 @@
package protocol
import (
"errors"
"v2ray.com/core/common/errors"
)
var (
@@ -26,7 +26,7 @@ func (v *User) GetTypedAccount() (Account, error) {
if account, ok := rawAccount.(Account); ok {
return account, nil
}
return nil, errors.New("Unknown account type: " + v.Account.Type)
return nil, errors.New("Unknown account type: ", v.Account.Type)
}
func (v *User) GetSettings() UserSettings {