diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-08-16 12:00:50 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-08-16 12:01:09 +0200 |
commit | f3bcb918bf60ef9f3e8fff0a98ca570bfca26888 (patch) | |
tree | 47f9c18866fa536153c5cd103b5272560019f839 | |
parent | 24aa675a4638751c50b2fe25c31d28c866c638e7 (diff) |
luci-base: network.js: fix inverted logic in registerErrorCode()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index d6a97408a..fb23fba85 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -678,7 +678,7 @@ Network = L.Class.extend({ registerErrorCode: function(code, message) { if (typeof(code) == 'string' && typeof(message) == 'string' && - proto_errors.hasOwnProperty(code)) { + !proto_errors.hasOwnProperty(code)) { proto_errors[code] = message; return true; } |