luci-proto-qmi: register further network error codes
authorJo-Philipp Wich <jo@mein.io>
Thu, 12 Jul 2018 15:00:32 +0000 (17:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 12 Jul 2018 16:10:59 +0000 (18:10 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
protocols/luci-proto-qmi/luasrc/model/network/proto_qmi.lua

index 8a28ad4716b0bdf54baac8225e58d9edd5b248a5..c414378d8097f38d1f85b246414e87e86f17b080 100644 (file)
@@ -49,3 +49,7 @@ function proto.contains_interface(self, ifc)
 end
 
 netmod:register_pattern_virtual("^qmi%-%w")
+
+netmod:register_error_code("CALL_FAILED",      luci.i18n.translate("Call failed"))
+netmod:register_error_code("NO_CID",           luci.i18n.translate("Unable to obtain client ID"))
+netmod:register_error_code("PLMN_FAILED",      luci.i18n.translate("Setting PLMN failed"))