summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-04-12 13:30:02 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-04-12 13:30:02 -0700
commitb1b2cca81486b52e41e705583370b464dc4007ba (patch)
tree86b5b36f5e202eb3ce0135afcaa2da6f77940bdf
parent5d55f49def2ed0fd5740a4a345b756fce1892553 (diff)
downloadvyatta-cfg-qos-b1b2cca81486b52e41e705583370b464dc4007ba.tar.gz
vyatta-cfg-qos-b1b2cca81486b52e41e705583370b464dc4007ba.zip
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
-rw-r--r--scripts/VyattaQosTrafficShaper.pm2
1 files changed, 1 insertions, 1 deletions
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);