r4321 vrp55Read8021QConfig(): include port name in exception message
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 11 Mar 2011 10:50:56 +0000 (10:50 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 11 Mar 2011 10:50:56 +0000 (10:50 +0000)
wwwroot/inc/deviceconfig.php

index 812eee0a1d754ed2d140c742634efb2a24df08ff..75bc671a6494c19a118c32f5677dc6cac9fda0f4 100644 (file)
@@ -680,7 +680,7 @@ function vrp55Read8021QConfig ($input)
                switch (TRUE)
                {
                case preg_match ('/^ port (link-type )?hybrid /', $line):
-                       throw new RTGatewayError ("unsupported configuration: ${line}");
+                       throw new RTGatewayError ('unsupported hybrid link-type for ' . $ret['current']['port_name'] . ": ${line}");
                case preg_match ('/^ port link-type (.+)$/', $line, $matches):
                        $ret['current']['link-type'] = $matches[1];
                        break;