git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5f2aa8d
)
luci-proto-qmi: register further network error codes
author
Jo-Philipp Wich
<redacted>
Thu, 12 Jul 2018 15:00:32 +0000
(17:00 +0200)
committer
Jo-Philipp Wich
<redacted>
Thu, 12 Jul 2018 16:10:59 +0000
(18:10 +0200)
Signed-off-by: Jo-Philipp Wich <redacted>
protocols/luci-proto-qmi/luasrc/model/network/proto_qmi.lua
patch
|
blob
|
history
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 8a28ad4716b0bdf54baac8225e58d9edd5b248a5..c414378d8097f38d1f85b246414e87e86f17b080 100644
(file)
--- 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"))
git clone https://git.99rst.org/PROJECT