From: Jo-Philipp Wich Date: Thu, 12 Jul 2018 15:00:32 +0000 (+0200) Subject: luci-proto-qmi: register further network error codes X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=401898a437c2b3191e0632e1114a5351113ccd9f;p=oweals%2Fluci.git luci-proto-qmi: register further network error codes Signed-off-by: Jo-Philipp Wich --- diff --git a/protocols/luci-proto-qmi/luasrc/model/network/proto_qmi.lua b/protocols/luci-proto-qmi/luasrc/model/network/proto_qmi.lua index 8a28ad471..c414378d8 100644 --- a/protocols/luci-proto-qmi/luasrc/model/network/proto_qmi.lua +++ b/protocols/luci-proto-qmi/luasrc/model/network/proto_qmi.lua @@ -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"))