mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Errors: Add PrintRemovedFeatureError & PrintDeprecatedFeatureWarning (#3804)
This commit is contained in:

committed by
GitHub

parent
3fed0c773f
commit
5f0642a671
@ -593,7 +593,7 @@ func (c *Config) Build() (*core.Config, error) {
|
||||
}
|
||||
|
||||
if len(c.Transport) > 0 {
|
||||
return nil, errors.New("Global transport config is deprecated")
|
||||
return nil, errors.PrintRemovedFeatureError("Global transport config", "streamSettings in inbounds and outbounds")
|
||||
}
|
||||
|
||||
for _, rawInboundConfig := range inbounds {
|
||||
|
Reference in New Issue
Block a user