1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-20 14:35:23 +00:00

check error

This commit is contained in:
Darien Raymond 2017-02-22 11:58:55 +01:00
parent 722594cb79
commit 55186c1917
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -5,6 +5,7 @@ import (
"io/ioutil"
"github.com/golang/protobuf/proto"
"v2ray.com/core/common"
"v2ray.com/core/common/errors"
)
@ -38,5 +39,5 @@ func loadProtobufConfig(input io.Reader) (*Config, error) {
}
func init() {
RegisterConfigLoader(ConfigFormat_Protobuf, loadProtobufConfig)
common.Must(RegisterConfigLoader(ConfigFormat_Protobuf, loadProtobufConfig))
}