mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-27 19:11:27 +00:00
Lint common/errors/feature_errors.go
This commit is contained in:
parent
75729ce779
commit
c30f5d4796
|
@ -25,7 +25,7 @@ func PrintDeprecatedFeatureWarning(feature string, migrateFeature string) {
|
|||
|
||||
// PrintRemovedFeatureError prints an error message for removed feature then return an error. And after long enough time the message can also be removed, uses as an indicator.
|
||||
// Do not remove this function even there is no reference to it.
|
||||
func PrintRemovedFeatureError(feature string, migrateFeature string) (error) {
|
||||
func PrintRemovedFeatureError(feature string, migrateFeature string) error {
|
||||
if len(migrateFeature) > 0 {
|
||||
return New("The feature " + feature + " has been removed and migrated to " + migrateFeature + ". Please update your config(s) according to release note and documentation.")
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue