add IsUpgradError
func for readability
#4144
Merged
IsUpgradError
func for readability
#4144