luci-proto-modemmanger: register missing error codes
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Aug 2023 13:25:00 +0000 (15:25 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Aug 2023 13:26:23 +0000 (15:26 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js

index 12da5bf4b4c1d1ff0ea81485bf1c8eb8d75e4d3d..224bd6f3bd2b17434f9b78d7805cdb0fc4006891 100644 (file)
@@ -11,6 +11,10 @@ network.registerErrorCode('DEVICE_NOT_MANAGED', _('Device not managed by ModemMa
 network.registerErrorCode('INVALID_BEARER_LIST', _('Invalid bearer list. Possibly too many bearers created.  This protocol supports one and only one bearer.'));
 network.registerErrorCode('UNKNOWN_METHOD', _('Unknown and unsupported connection method.'));
 network.registerErrorCode('DISCONNECT_FAILED', _('Disconnection attempt failed.'));
+network.registerErrorCode('MM_INVALID_ALLOWED_MODES_LIST', _('Unable to set allowed mode list.'));
+network.registerErrorCode('MM_NO_PREFERRED_MODE_CONFIGURED', _('No preferred mode configuration found.'));
+network.registerErrorCode('MM_NO_ALLOWED_MODE_CONFIGURED', _('No allowed mode configuration found.'));
+network.registerErrorCode('MM_FAILED_SETTING_PREFERRED_MODE', _('Unable to set preferred mode.'));
 
 return network.registerProtocol('modemmanager', {
        getI18n: function() {