From b1b2cca81486b52e41e705583370b464dc4007ba Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 12 Apr 2008 13:30:02 -0700 Subject: change error message when speed can not be determined Slightly better message for the case of using auto value for bandwidth on a device does not support it. Bug: 3104 --- scripts/VyattaQosTrafficShaper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VyattaQosTrafficShaper.pm b/scripts/VyattaQosTrafficShaper.pm index 4ea494c..b3a05a6 100644 --- a/scripts/VyattaQosTrafficShaper.pm +++ b/scripts/VyattaQosTrafficShaper.pm @@ -255,7 +255,7 @@ sub _getAutoRate { if ( $rate eq "auto" ) { $rate = VyattaQosUtil::interfaceRate($dev); if ( ! defined $rate ) { - die "Interface speed defined as auto but can't get rate from $dev\n"; + die "Interface $dev speed cannot be determined; use explicit bandwidth value\n"; } } else { $rate = VyattaQosUtil::getRate($rate); -- cgit v1.2.3